"using" inside a function

22 views
Skip to first unread message

Freewind

unread,
Jan 18, 2013, 1:09:38 AM1/18/13
to haxe...@googlegroups.com
If I'm not understanding wrong, I can only declare "using" on the top of a file:

    using Lambda;
    using Arrays;

Is it possible to declare it inside a function? So it's scope is only inside the function

Jason O'Neil

unread,
Jan 18, 2013, 1:27:49 AM1/18/13
to haxe...@googlegroups.com

You are correct: Using applies to the whole file, and there's not much you can do to change it.

You can call the functions the long way (Lambda.count(i) instead of i.count()) if you needed to, but that's about the only option as far as I know...

Freewind

unread,
Jan 18, 2013, 3:08:52 AM1/18/13
to haxe...@googlegroups.com
Will haxe team add this feature?

Nicolas Cannasse

unread,
Jan 18, 2013, 3:50:10 AM1/18/13
to haxe...@googlegroups.com
Le 18/01/2013 09:08, Freewind a �crit :
> Will haxe team add this feature?

No plans for it atm.

Best,
Nicolas

Reply all
Reply to author
Forward
0 new messages