| |
|
|
- Page 1 - |
|
| var Bezeichner [ = worth ] [, Bezeichner [ = worth ], ...
Deklariert Variablenbezeichner and points them ggf. values To.
it can as much as you want variables prepares go, allows for Bezeichnernamen are letters and Digits and the first characters must one character his. too allows are The characters _ and .
Info: Var as function can uses to be whom Variablentyp zurückzuerhalten.
Related: § 5 - Datentypen
Examples of The usage of variables:
Einfache Variable:
Einfache Variable, kompaktere spelling:
var a=10,b=20.5,c="Hallo Welt"
print a,b,c// gives 10 20.5 Hello World from
aray:
Assoziative Arrays:
var a=["Magnet"=5,"Faktor"=5.5,"Farbe"="Grün"]
print a["Faktor"]// gives 5,5
Arrays as Objects:
Arrays as Objects:
type of/ one variables relating:
Keywords: var,declare,gettype |
|
|
| |
|
|
|
| |
|
- Page 1 - |
|
HofK | "Es be because, to sqrt becomes as long as numerisch "gedacht" as goes."
I had it hoped, but not absolutely expects, because derartig lästige Sonderzeichen sparendes, really vereinfachendes have I with whom gängigen Languages yet not seen. gives it the at all already somewhere?
sure must one it so bring into action, that The Übersichtlichkeit not To short comes. This will itself useful quick show.
The Präkompilierer with the Syntaxeigenschaft/Syntaxmittel Kodeergänzung through Space Operator earn possible a own Paragraphen, with § 7 Operators goes the Space Operator something under and is Yes then too no klassischer Operator.
the space, the Space Operator is a intelligenter Space Seperator, one intelligenter Trenner, one Space-Autoseparator short one Autoseparator, one polymorpher Seperator, so yet something polymorphes with InfinityProfan.
" ... the to whom logischen Operators aufgelöst becomes ... it can only of right to left aufgelöst go." is integrally important to that understanding and ought to into Paragraphen mere. Can whom zugrundeliegenden Algorithmus short/vereinfacht/clear present?
Freue me already auf's konstruieren and explain of Examples to Syntaxeigenschaft. |
|
|
| |
|
|
| |
|
- Page 2 - |
|
|
| Klaus Hoffmeister (16.05.15)
I had it hoped, but not absolutely expects, because derartig lästige Sonderzeichen sparendes, really vereinfachendes have I with whom gängigen Languages yet not seen. gives it the at all already somewhere?
is I do not famous! Perhaps. have I there Yes what made up.
Klaus Hoffmeister (16.05.15)
the space, the Space Operator is a intelligenter Space Seperator, one intelligenter Trenner, one Space-Autoseparator short one Autoseparator, one polymorpher Seperator, so yet something polymorphes with InfinityProfan.
" ... the to whom logischen Operators aufgelöst becomes ... it can only of right to left aufgelöst go." is integrally important to that understanding and ought to into Paragraphen mere.
OK, I write the still with mere. a extra § would like I for not eröffnen I me so momentarily heavy do.
Klaus Hoffmeister (16.05.15)
Can whom zugrundeliegenden Algorithmus short/vereinfacht/clear present?
this is too so a thing The I do not rule. Perhaps. as textalisches Struktogramm:
as long as somewhere Freizeichen in Befehlszeile* ( parse of Freizeichenposition to left the Schlüsselwort, if found then ists a FN? { parse complete argument* to right and set it in clinging | set one comma } )
*by rekursiver Algorithmus there a "Befehlszeile" as well as one complete argument too one Teilargument his can) |
|
|
| |
|
|
|
| iF (01.12.14)
... Var can also uses to be whom Variablentyp zurückzuerhalten. In this case is Var as function To use: a=1.1;print var(a) //gives float from. ...
the functions now! |
|
|
| |
|
|
|
| HofK (24.02.2016)
If then sometime another Sonderzeichen for var( ) How °a remain ought to - see Discussion under [...] - would it superzumquadrat! Seinerzeit was too The question, whether one instead of var(a)=="long" only var(a)==longTo write make possible could.
there You The Murmel apparently very gladly like,
have I The simply time installed!
what however you don't say so his becomes:
Syntaktisch closes the Space-Operator Function-Gleichnamige Konstanten first from:
self by comma force would here useless, there then long() instead of long, otherwise went too screen.width instead of screen.width() not etc. so would means too $alias long "long" To beschädigtem Queltlext lead. |
|
|
| |
|
|
|
HofK | |
|
| |
|
|
|
HofK | "Passe first the example polymorphe procedure [...] with °a instead of var(a) etc. on."
is vollzogen, sees clear from and functions lovely! |
|
|
| |
|
|
|
| deference: it follow important Changes.
in example there nachfolgend The instruction "var" not any more, there tappt im dunkeln not necessary is and one variables simply use can without tappt im dunkeln extra deklarieren To must.
therefore too this issue out from Functions into to Forum moved. whether still a _Funktion "var" necessary is - particularly because of the ° Sonderzeichen, is too fraglich. Presumably sooner not.
additionally a important Änderung:
variables are always pub, Procedures having only Access to by global listed variables.
|
|
|
| |
|
|
|
HofK | iF (28.02.2016)
whether still a function "var" necessary is - particularly because of the ° Sonderzeichen, is too fraglich.
having hardly To hoping ventured, that it with the by indicated definierten variables something becomes. super! an var function to that detect the Type is then sure kontraproduktiv, already because one because of the Space Operators then too
a = 1.5 t = var a write could, what still something "eigen" would, against it is a = 1.5 t = °a perfect. |
|
|
| |
|
|
|
| Have nevertheless again bow installed,
quick to fix - goes almost garnichts otherwise. |
|
|
| |
|
|
|
HofK | Bug' s are the salt in in the Programmsuppe, otherwise becomes it yet tedious |
|
|
| |
|
|
|
| so, be hopefully now over Gröbste away.
cool something like:
or
or here be proud How atze:
print Test().inherit.0
lol.mydatas.vendor=test().vendor lol.anotherclass.attrib=test().size
print lol
wald=[ "trees"=[ "hans" "ralf" "fred" ] "gui"=gui.grid gui.hwnd [5,5] ]
gui.theme woods.gui gui.theme.debug
print woods.trees
//
proc Test a=[ 5 6 7 ] return [ "color"=rgb 0 0 0 "size"=50 "vendor"="Yamasupa" "inherit"=a ] endproc
Can means Structures create and them circa itself throwing. |
|
|
| |
|
|
|
HofK | iF (28.02.2016)
Can means Structures create and them circa itself throwing.
... and Beginner hard on the head so meet. the example is a lovely massives Wurfgeschoss for.
but one sees same many Opportunities right squat and me remaining work it step for step rüberzubringen. Virtually with Wattebällchen throwing is with the material angesagt.
Freue me on it. ------ |
|
|
| |
|
|