Hi people, nice to see your feedback
@Dare: Your idea sounds even cooler than mine
Even so I don´t really like those words

(MacroReturn just remembers me of a ProcedureReturn, but you´re right, the way it works would be better discribed in MacroReplace or something)
Ah, we´llm find a name for those babies
@Einander: I already knew this possibility (so many i´s

) But the problem with this is, that you can not read it like "normal PB Syntax":
Of course, everybody in this board understands directly, what
Code: Select all
Macro MyReturn(var1,var2)
var1+var2
EndMacro
A=5
For i=0 To 10
MyReturn(A,3)
Debug A
Next
does.
But imagine this: You get a code (whatever, JaPBE Opensource, TheMatrix reloaded, whatever) with, ah, lets say 10.000 Lines of code.
So, now you have a problem, that in Some case, A gets associated a wrong value. Now, what would you do, to find the problem?
I, and I think, most of the others would try to find the place, where this Value is associated to A. So you´ll scan the Lines Searching for an "A=".
But there is none.
so, what to do? Right, you´ll try to do a Debugg in each line, to see, after which line A changes.
That´s a little more work, isn´t it?
And now imagine, A doesn´t get this new associated Value inside this Macro but in a Macro which is "called" in a Macro which is "called" in a Macro which is "called" in a Macro which is "called" in the Macro you found responsible for the wrong A.
Have a bug? Have fun
And don´t forget, finding the place, where A gets the wrong value is not always the place, where the bug is

So you might have some more Variables changing their variables in Macros;)
I hope you understand, what I mean
And btw: I know, that "called" is the wrong word, because Procedure are the only ones to be called, Macros are replaced. But I lost a page in my dictionary which contains the right word for "called" in the upper text :roll: