Please don't say 'include'. - What about "expand" as Shane used it already? So think about a macro as a set of AS'es and only form the set union of it. Every AS should be a set of size 1 and a macro a set of size n. As a result you would get an infinite iteration but A = B! So if somebody would suggest it to be nonsense, what about Pi etc.? ;-)) I think a script has only to expand a macro and to insert it into a list of already expanded macros. ... Christian -----Original Message----- From: Gilles Farrache [SMTP:farrache@cc.in2p3.fr] Sent: Wednesday, January 10, 2001 12:17 PM To: Shane Kerr Cc: Wilfried Woeber, UniVie/ACOnet; farrache@cc.in2p3.fr; db-wg@ripe.net; routing-wg@ripe.net; Henk.Uijterwaal@ripe.net; farrache@cc.in2p3.fr; Jesper Skriver Subject: Re: Loop in AS macro Shane and al, When I was at school (a long time ago) I learn what was called the "set theory" ( "Theorie des ensembles" in French) that was part of what was called the NEW Mathematics. In those courses I learned that : If set A is included in set B and if set B was included in set A then A = B. Whet your telling me is that there are New New mathematics (as there is a new economy) in which : if set A is included in set B and set B included in set A that does not implie A = B. I am very interrested by that theory and will be happy that you give me some pointers to it. :-) Or what is an AS-MACRO ? It is a set of AS (or a set of set of AS ....). So they have to follow the set theory. Gilles
Hello, I wanted to throw my $0.02 in :) Tools used to expand AS-MACRO/as-set's need to be aware of the looping problem (and thus there is a bit more work for the programmer) but this is an implementation issue only. Also, there is a problem if you try to force consistency. eg, as-set: as-foo members: as-bar, as-x as-set: as-bar members: as-foo, as-y So to fix the loop you would need to rewrite the members for both set's to: members: as-x, as-y But in doing so you remove the link between as-foo and as-bar. So if as-foo were to add as-z then this would not be picked up in as-bar. eg, as-set: as-foo members: as-x, as-y, as-z as-set: as-bar members: as-x, as-y --jerry
participants (2)
-
Christian Storch
-
gerald@merit.edu