On 15.03.2006, at 09:08, Raphael Collet wrote:
We want to be able to extend Oz with something that still looks like Oz. We want something like

   unless X<Y do {Show X} {Show Y} end

instead of

   <<unless X<Y {Show X} {Show Y}>>

I just try to understand what a macro facility like this implies. I understood that this was not officially announced yet. I am just curious..

In the Lisp community, there was complain that macro calls can not be distinguished from function calls. Your Oz-macro facility does not even mark the call explicit -- in contrast to
{F X} or <<f X>>.

Would this syntax turn every atom potentially in a keyword (i.e. the start of a macro call)?

Would all macros be global, or are they explicitly imported? Say, I am using some Oz extension from Mogul which defines some macros I am not aware of.I may happen to use the name of this macro just as a datum. Does Oz then raise an exception like

        "expecting 'end' for macro 'foo'"?

Thanks!

Best,
Torsten

--
Torsten Anders
Sonic Arts Research Centre
Queen's University Belfast (UK)
www.torsten-anders.de


_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to