> More powerful macro systems [...] can give you information such as whether a variable is in scope of not.
Certainly yes. I don't know either.
> So I think the issue that you're running into isn't in the behavior of macros and 'if, but that Arc isn't able to tell you at macro expansion time whether a variable is defined or not.
Being (or not) able to tell me at macexpansion time if a variable is defined is part of what I'd call the behaviour of macros ;-)
But actually, 'defined was just a way I tried to deal with Arc macro expansion stuff, but it was just a consequence of my problems with 'if, not the beginning.
However yes, for the precise case of 'each (but again, this topic was not limited to it), maybe the 'if behaviour would not be the main issue anyway.
ah, but now you're doing the 'defined test at run time. What you want is to be able to do the 'defined test at macro expansion time in order to affect how your macro is expanded, and that, as far as I know, Arc isn't able to do for you.
Yes, but check the previous messages, I've always wanted to do so. The definition of 'myeach basically never changed.
> What you want is to be able to do the 'defined test at macro expansion time in order to affect how your macro is expanded
Not necessary (maybe yes in the current Arc because of the 'if behaviour, but between making the language works for me [change its behaviour] or works for the language [change my behaviour], you'll guess what I prefer), and no, this is too precise. What I want is 'each to be smart and have an "anonymous form". Which tricks to use to get that, I don't care.
I don't care of 'defined, this thing should certainly not exist anyway.
> and that, as far as I know, Arc isn't able to do for you.