[haXe] blocks and yield?

Nicolas Cannasse ncannasse at motion-twin.com
Fri Apr 6 18:40:49 CEST 2007


> hi list
> 
> It'd be nice to have the rubyish block and yield construct in haxe,
> it's just a bit of 'syntactic sugar' as it seems to me all the
> requisite plumbing exists.
> 
> obj.method() { x -> block }

For blocks, there is a problem of syntax, since using { } will lead to
major conflicts.

For "yield", this need appropriate VM support which is not available
either in Flash or JS.

Nicolas



More information about the Haxe mailing list