[nem-en] Re: Late Binding in Nemerle

Kamil Skalski kamil.skalski at gmail.com
Tue Jul 4 18:49:40 CEST 2006


> //       def num = late s.Length :> int + 13 // now works correctly!

So the whole expression  's.Length :> int + 13' is late bound? I guess
this should be the behaviour - make the whole expression late.

> //         somevar.someprop = o.Property // careful! somevar became late bound, o did not!

Is it a fixed bug or the current behaviour? I guess ALL expressions
inside late { } should be late bound.

> //         Console.WriteLine(...) // console is not an object, so you
> can't do this :)

You might consider checking if "Console" is a visible type, for
example by using Macros.IsTypeName, just like Arthur did. I'm not sure
what you should do in case it actually is a type... make it a
latebound call to static method?

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



More information about the devel-en mailing list