Psychophanta wrote:@Demivec, sincerely that is what is called a limitation of the language, in this case PB language, are not you in accordance?
Simply my request is to avoid limitations as much as posible.
freak wrote:
I don't think this is a good idea.
I think it is a worthwhile to think at least twice about it, else think about another strategy to make to be "local" (Protected) to the input variables in a Macro, i.e. to be able to access to external variables and Constants from inside a Macro which has the same names as input parameters.
In Procedures there is different external and local variables, even they have the same name. My purpose is to allow it for Macros too. Smile
I am in accordance with you that it is a limitation. I am also in accordance with the language limiting it as a way to accomplish something. Limitations are not necessarily bad (but that's another matter ).
In this instance the limitation is that a programmer has to use a parameter name for the macro that doesn't match a declared constant
if the constant is used in the Macro. IMHO this seems minor and nonprohibitive for the various uses of a Macro. Or in otherwords if an individual wanted to use a parameter and constant of the same name in a Macro they are mis-using the tool. Sometimes you can get a screwdriver to function as a hammer and sometimes not, better to use a hammer.
I realize that the limitation that may be the one actually being argued over is one of having the ability to write code that works within the bounds of the language as it currently exists. That is why almost everyone visits/contributes to the forum.
I am all in favor of removing needless limitations but I don't think you will prevail on the points you have expressed. Notwistanding that view, I'll wait and see if you sway Fred or freak.