I try to shorten a code by using macros. And I als otry to shorten the Macro keyword itselb by a Marco:
Code: Select all
Macro M(a,b):Macro a:b:EndMacro
;M(C,"world"):EndMacro
Macro C:"world":EndMacro
sText.s = "Hello " + C
MessageRequester("", sText)
To illustrate what I mean, please run the example code. Then comment the 3. Line, uncomment the 2. line and run the code again. Now you see a linefeed was generated between "Hello" + and the Macro C which breaks the code.
I think this is a bug, what do you think?
Regards, Kurzer
PS: In older Versions of PB this cheat was possible to reduce source code size:
Code: Select all
Macro M(a,b):Macro a:b:EndMacr:EndMacro
M(H,"Hello world")o
Debug H