A couple of new Syntax things
Posted: Tue Dec 05, 2006 10:07 pm
1) I would like to have the Operator EQUALS. Because the = Operator is used to asign a value to a variable this one can't be used.
Here an example:
This Function would return 1 if Me is = "Test" and return 0 if its anything else
2) Callback parameter check
A possible Parameter checking for CallBacks would be great. It would make it easier to find bugs in codes etc.
I have an idea how to do such a thing, I would do it with Prototypes but maybe there's a better way.
For Example:
3) Something for the IDE.
Macros without Parameters should be displayed bold.
4) Macro Return
This could be written one time in a Macro and it would define the way the macro is replaced.
For Example:
This would be replaced with:
So for now that's all can think about. Hope Fred likes my ideas
Here an example:
Code: Select all
procedure Test(Me.s)
if Me.s EQUALS "Test"
endprocedure
2) Callback parameter check
A possible Parameter checking for CallBacks would be great. It would make it easier to find bugs in codes etc.
I have an idea how to do such a thing, I would do it with Prototypes but maybe there's a better way.
For Example:
Code: Select all
Prototype.s CallBackPro(Value.q,Test.s)
procedure Test.CallBackPro (Me.q,Var.s)
procedurereturn "Test" ;We must return a String because the Prototype is defined like that.
endprocedure
Macros without Parameters should be displayed bold.
4) Macro Return
This could be written one time in a Macro and it would define the way the macro is replaced.
For Example:
Code: Select all
Macro GetVal()
lockmutex(ValMutex)
MacroReturn Value
unlockmutex(ValMutex)
debug x
debug GetVal()
debug y
endmacro
Code: Select all
debug x
lockmutex(ValMutex)
debug MacroReturn Value ; <- The Line with the MacroReturn
unlockmutex(ValMutex)
debug y