[nem-en] Late Binding in Nemerle

Snaury snaury at gmail.com
Thu Jul 13 19:36:48 CEST 2006


On 7/13/06, Kamil Skalski <kamil.skalski at gmail.com> wrote:
> def r = late o.Name.[0]; // obtains first letter of property Name
>
> Does it mean the same as
>
> def r = late {
>   def n = o.Name;
>   n[0]
> }

Well, yes, logically exactly like this, but saves you one locals allocation :)



More information about the devel-en mailing list