[haXe] instanceof Function
Guntur N. Sarwohadi
gsarwohadi at gmail.com
Tue Dec 4 02:21:30 CET 2007
you can use Reflect:
if( Reflect.isFunction(f))
Guntur
On Dec 4, 2007 8:07 AM, Luke Schreur <luke.schreur at profero.com.au> wrote:
> Hi, I'm sure this has been asked before but I can't seem to be able
> to find it.
>
> I would like to know what the equivalent of 'instanceof Function'
> would be in haxe, as in:
>
> if( f instanceof Function )
>
> Since the Function type doesn't exist, I can't do Std.is(f, Function).
>
> Any help appreciated.
>
> Thanks,
> Luke
>
> --
> haXe - an open source web programming language
> http://haxe.org
>
More information about the Haxe
mailing list