OK, the current update has a huge change in the precompiler. You might experience problems, though I found none so far.
However - now you have a preprocessor....
All hail Gernot... :nw:
However, the instructions for using the preprocessor seem to be missing :'(
That´s great!
But please, could you explain it a bit how will affect?
Maybe will be easier to include new platforms?
Eitherway, thanks for the job mate.
Good news indeed! :good:
Thanks Gernot! =D
Has CONSTANT been officially released too ?
QuoteBut please, could you explain it a bit how will affect?
Maybe will be easier to include new platforms?
Its mainly for changing the compiler depending on the status of a variable.
Cooooooooooooooooool thanks :good: :good: :good: :good: :good:
Macros would be a nice addition, I am not sure if the new preprocessor is sophisticated enough for this?
Also, does this mean CONSTANT is safe to use now?
I know, I know, were an insatiable pack of wolfs Gernot, always after a bit more! :P
.... the online help has the docs. Strange it's not in the update....
http://www.glbasic.com/xmlhelp.php?lang=en&id=368&action=view
Very handy for making debug code versions and this could enhance multi platform compiles... :good:
Yes, it's certainly helpful.
CONSTANT seems to be safe now - haven't been able to overwrite a constant variable. I think the online documents can have that added soon.
coooooooooool
Sweeet!
:good:
Wonder if these can be used in a dll, hmmm..
Update fixes the missing docs and the netwebend on iPhone.
Var AS Proto = Func :whistle:
oh weia - große Baustelle. :'(
Yeah but realy realy realy cool to use!
ich hätt da noch ne beustelle....
Simulator!!!!
Quote from: Schranz0r on 2009-Nov-03
Var AS Proto = Func :whistle:
Please, please, pretty please....... :x
What's wrong with PROTOTYPE ?
they want to assign a function to a prototype member at initialization level. It's really a nice ide, thus it will come. But it's a horror to implement for me. Everything regarding the precompiler is :P
I need this :) :whistle:
Quote from: Kitty Hello on 2009-Nov-06
they want to assign a function to a prototype member at initialization level. It's really a nice ide, thus it will come. But it's a horror to implement for me. Everything regarding the precompiler is :P
:'( :'( :'( :'( :'(
Gernot made it!
we can use it hopefully on the next update!
var AS proto = func
AHHHHHHHHHH... great!
Kann ich das so verstehen das eine Function einer Variablen übergeben wird
und ich sie in der Art wie eine Methode nutze?
Cool, well done Gernot another handy addition! :good:
Quote from: Schranz0r on 2009-Nov-07
Gernot made it!
we can use it hopefully on the next update!
var AS proto = func
AHHHHHHHHHH... great!
WOW....this is gooooood news :good: :good: :good:
So, what's the syntax for it ?
Quote from: D²O on 2009-Nov-07
Kann ich das so verstehen das eine Function einer Variablen übergeben wird
und ich sie in der Art wie eine Methode nutze?
Jepp genau das!
MrTAToad:
PROTOTYPE MyPrint: t AS TypePrint
TYPE TypePrint
x%; y%
text$
printtext AS MyPrint = TPrint
ENDTYPE
LOCAL TypePrints[] AS TypePrint
LOCAL t AS TypePrint
t.x = 10
t.y = 20
t.text$ = "Just a test!"
DIMPUSH TypePrints[], t
WHILE TRUE
t.printtext(t) // "t" call it self!
SHOWSCREEN
WEND
END
FUNCTION TPrint: t AS TypePrint
PRINT t.text$, t.x, t.y
ENDFUNCTION
Ah, so you are using PROTOTYPE then!
Its nifty !