English
Forum & Help

Großer Funktionssatz, small Funktionssatz.

Funktionssatz 1 (original), Test on Näherung set 2

 
heavy stay and by the Text.

momentarily is it Yes so:

arr
chdir
chr
cls
del
device
display
event
exec
fattr
fcopy
fdel
float
fread
fwrite
gps
gui
http
len
long
math
msg
ord
phone
print
rgb
rnd
round
sleep
st
time
trim

the must rather weg.

Klaus showed on Del, and the it to Str could.

the is correct naturally. having I but therefore not so made, there st only then a übliche function (How mid, st$, translate$...) umsetzt, if too The Parameter then How with whom jeweiligen functions in üblicher Order transfer go could.

therefore goes

st(s,2,3) as
mid$(s,2,3)

or

st(s,f,r) as
translate$(s,f,r)

or

st(20) as
st$(20)

with Del was this then not any more possible, wären The same Parameter How mid:

st(s,1,2)
mid(s,1,2)
del(s,1,2)

clear could one now:

st(1,2,s) as
del(s,1,2) -

but the would erstmalig abweichend of a conscience standard.

therefore I had del particular. so too with others functions.

be but not pleased.

idea: better Keywords.

example:

there's len and width and fattr for filesize.

Why not only len or width, len or width on one file could filesize give.

but width(file)? is still Murx, too len(FILE file) is Murx.

Width("Hallo") could naturally 5 his.

Why means not simply a function size and no width More and no len.

print size(string "Hallo")
print size(file "/...")
print size(display) /// could one aray yield [xx,yy,"width"=xx,"height"=yy]
Virtually one yet ultra kompakterer Sprachkern.

Please no "ist not übersichtlich"- Notes, because the I my, should rather and übersichtlicher his as Basic.

experiment:

del
get
set

you
file

float
int
string

copy
device
display
exec
gps
gui
http
msg
phone
print
rgb
rnd
round
size
sleep
time
trim

abschaffbar there theoretical mere through syntax herbildbar

arr

-

the wären then 25 command instead of 32 and so would eindeutiger ableitbar.

on the example:

file del f //fdel
file set f s //fwrite
file get f //fread
file size s

too kürzer mgl:

file del f
file f s
file f
file size f

means instead of fread,fwrite,filesize,fdel only yet allgemeinere Keywords: file, del set get size - Keywords The against too into others command uses go could.

is hold one Gedankenexperiment.

The others Variant The XProfane or yet exzessiver How with PHP: Ultra-many-command its names already quite well its function describe. something like How createImageFromPng etc.

but Perhaps get we Yes the detailed contrary there and afford The Langbefehlsnamen then by XProfan.api.

I mean, unless now To Beginn the development the Language, when then such Überlegungen...
 
12/12/15  
 




E.T.
I mean the thought gefällt me
 
XProfan X3
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
12/12/15  
 




Jörg
Sellmeyer
The Idea find I very beautiful. a couple such things are so too in XProfan already angedeuted. Z.B. are The whole Move-functions any under one housetop.

What is then but with Dopplern How:
Size(File "/...")

and

file size s

should such things twice zugänglich his or rather on one limit. means either from the function (in the senses of action) since or of Objekt.
 
XProfan X3
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
12/12/15  
 



very,

for had I The Solution parat:

size and file are a) Konstanten and b) functions

so can size file f recognized go so size(file,f) and but too file size f To file(size,f)

obstacle: The Space-Operator with:

size file f

it can't know whether size(file(f)) meant is or size(file,f).
 
12/12/15  
 




HofK
there bite itself then two items yet kräftiger, also now already a problem are.
momentarily means The variable Parameteranzahl and the explanation by the Space-Operator.

on the would like I but not any more dispense, even if even with

print "Test" rgb(255 3 32) rgb( 0 255 128) // a Klammer could yet wegfallen

The clinging not any more both entfallen can, since the Tranzparenz "im Wege" is, but

print "Test" rgb(255 3 32) rgb 0 255 128
print "Test" rgb 255 3 32 // no Backgroundcolor

eindeutig are.

If one verinnerlicht, that the Space-Operator formal of right any, too optionalen, Argumente to davorstehenden Funktionsbezeichnung zusammensucht, can so bypass. In complicated Make or to better Strukturierung is it Yes not prohibited time a Klammer More To settle - see example supra!

To st and del:

The gegenwärtige structure of st is already right vielschichtig. The Variante (s5) in the Image shows but already a generelle Possibility the Systematisierung on.





One mode. so can in a function a structure distinguished and then too Parameterfolgen stick to.

in example
fkt(string, mod long, long, long)
or
fkt(string, long, long [, mod long])
with optionalem mode.

one bräuchte too a Overview all desirable Grundfunktionalitäten with something look ahead what yet come along could/ought to/should.
 
12/12/15  
 



Klaus Hoffmeister (12.12.15)
If one verinnerlicht, that the Space-Operator formal of right any, too optionalen, Argumente to davorstehenden Funktionsbezeichnung zusammensucht, can so bypass.


No, deference!

the I had already once attempts you from the head To hit -
the is correct so not! In Infinity can functions discretionary ornate -
whom Spaceoperator interested not How many Parameter a
function has - the can itself too to Laufzeit Change through
Neudeklaration of Procs in Procs. it can only discern whether it a
function is - and then clinging it - or whether it no function is.
 
12/12/15  
 




HofK
...zusammensucht ...

there Have I not correctly./ To lax framed, in the example becomes from

print "Test" rgb 255 3 32 rgb 0 255 128

print ("Test",rgb(255,3,32,rgb(0,255,128)))

it'll means of right to that rechten rgb clung and then moreover. so meant I with regard to content.

here gives the even a Error, because then in the Endeffekt rgb(0,255,128) no gültige transparency for the left rgb is.

shows but, that the Operator already too its Tücken has. nevertheless is it well!!!
 
12/12/15  
 




HofK
appendix To st:

from visibility the Programmierers are in the Image supra The mutants (s6) and (s7) of st a function with optionalem first Parameter:

st([long suchAbPosition,] string hay, string needle)

"Dabei is this time right unusual the first Parameter optional." 

then evtl.

fkt([mod long,]string, long, long )

imaginable.
 
12/12/15  
 




HofK
to new structure the Infinity-Profan functions

HofK (12.12.2015)
... One mode. so can in a function a structure distinguished and then too Parameterfolgen stick to. ...

---------------------------------------------------------------------------------------

appendix To st:
from visibility the Programmierers are in the Image supra The mutants (s6) and (s7) of st a function with optionalem first Parameter:
st([long suchAbPosition,] string hay, string needle)
"Dabei is this time right unusual the first Parameter optional." 
then evtl.
fkt([mod long,]string, long, long )
imaginable.


These Strukturierung I had me with the in front stehenden Parameter about so virtual. The now chosen point-Notation everybody can as assoziatives Datenfeld of/ one Hauptfunktion or Hauptfunktionsobjekt present can, is yet übersichtlicher, rather handhabbar and with want well ergänzbar, as long as The Keywords "passend" are.

iF (13.01.2016)
Long modi falls lane.
For this New Features:
a=arr.sort(a)
a=arr.sortnum(a)
a=arr.reverse(a)
a=arr.usort(a,fn)
Documentation and further functions go nachfolgend this system adjusted.
... a Funktionsgruppe.


The Funktionsstruktur becomes super clear / handhabbar.

there  [...]  that's all right discernible.
 
01/13/16  
 



OK calm, be I glad and grateful the You, the so see.

as nächstes would I on display() (later dev.screen) herantasten, hierbei would like I sinngemäß something new achieve:

Getter and Setter mere over Syntax:

display.rotation(worth) <-- setter
display.rotation <-- getter

of course could one in this drop as getter too simply display.rotation() use, but then would I me -setter without Parameter- steal.

additionally:

device, display, gps, phone, camera, etc. wander any ex to dev*,
z.B. dev.phone.call(...

everything what means hardware/ Sensorik or "Module" the tools are and nothing with the Programming-Language To do has, hike to dev(ice).

additionally:

from display becomes dev.screen, so too items How co120 etc. therein Space get can. very taken bräuchten we then too no cls and no print More, would then dev.screen.clear dev.screen.print - cls and print would then in the profane.api Space find. with Screen can then next to whom Displayfunktionen too Grafikmodi etc. tuned and be something like How dev.screen.screens and dev.screen.set(activeScreen) etc. fit well zueinander/ would.

additionally:

from device becomes then crept dev., gives me too The Possibility The jetzigen expenses of device() rather To gliedern and about one dev.battery herzubilden.

another Piece work, have but I correctly. good feeling so now on the right lane To his.
 
01/13/16  
 



where it me zerreißt:

The tools-functions by dev(ice) something abzutrennen from the functions the actual Programming-Language, yields generally sense if I me this so anschaue:

dev
dev.phone
dev.gps
dev.bluetooth
dev.camera
dev.lights

an so on.

so are it too The functions, everybody can seltener as others writes.

so seen would/n the screen/ The displays but too only one "Gerät", means would it dev.screen.

gui against would the Sorting halber dev.screen.gui -
but then type one itself Yes stupid -
cls and print hätten ihren actual Space in dev.screen.clear and dev.screen.print.

means is the question, whether and to whom Krit. one a Trennstrich zieht.

my idea: functions everybody can often needed, belong in that "root".

thereafter would gui under dev.screen.gui accessible, but in root directly as gui. print would dev.screen.print and is in root as print accessible. so too cls.

so goes the plan but neither integrally on if I me z.B. The function http ansehe there one these too seldom writes and thereafter not in that root heard. but would it dev.http? sooner dev.internet.http? and wieso at all dev(ice) with dev.http? Tja, and then Gibts too z.B. msg - writes one normal neither often. dev.msg?!

so The Überlegung, whether one everything meaningfully under a hat get about in the "dev" umbenannt would.

what would here always fit and can nevertheless beautiful short written go?:

bla
bla.phone
bla.gps
bla.bluetooth
bla.camera
bla.lights
bla.screen
bla.msg
bla.internet.

Perhaps. is thereafter The Sorting to "dev." then letztendlich still not meaningfully - and it must too somehow moreover weg. therefore take I dev.gps and dev.screen again in that root to gps and screen.
 
01/14/16  
 



this would my jetziger attempt everything in Einklang To bring:  [...] 
 
01/14/16  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

14.627 Views

Untitledvor 0 min.
HofK02/25/16
GDL02/18/16
Roland Schäffer02/04/16
Mo02/01/16
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie