[nem-en] Scala: what you say about it?

Kamil Skalski kamil.skalski at gmail.com
Mon Nov 20 16:34:14 CET 2006


>
> But we need method of marking locations.
>

Locations are not particularly good thing to rely on IMHO...
For example:

macro f() {
  <[ Foo.Bar (); Bingo(); ]>
}


--- file.n ---
 f ();

After expansion of f();  the generated code  'Foo.Bar (); Bingo();'
will have the same (copied) location as  'f()'
On the other hand, the code which copies (Util.locate macro) could
tweak the locations to mark them as  'we are in compiler now, not in
parser'. This could work (I guess I mentioned this idea before).
We should just choose how locations should be marked - new field? some
tweak in existing fields?

-- 
Kamil Skalski
http://nazgul.omega.pl



More information about the devel-en mailing list