[haXe] Method checking

Michael Hansen borendex at gmail.com
Thu Apr 6 11:52:03 CEST 2006


It's a feature. MovieClip implements Dynamic, so you can call methods even
if they
are not declared.

cheers
  -michael

On 4/6/06, Michael Florentin <mflorentin at laerdal.dk> wrote:
>
>
> Hi list...
>
> I've recently discovered haXe and I must say, I like what I see.  I'm
> especially pleased with the strict type system - I've never understood,
> what is so cool about dynamic typed languages which seems to be
> prevalent paradigm among scripting languages.
>
> By far, the most common programming errors I make are silly spelling
> mistakes or forgetting the exact type of the value I once put in a
> variable.  I like to be informed about those silly bugs while I'm coding
> my project instead of having the final product crash in weird ways.
> Having a background in languages like Haskell, I have a weakness for the
> "Once it types it works"-property in programming languages...
>
> However, one point I've come across where I would like the haXe compiler
>   to help me more is in:
>    var mc = flash.Lib.current.ICantSpellCreateEmptyMovieClip("test_mc",
> 1000);
> I would have thought that the compiler would fail and tell me that
> ICantSpellCreateEmptyMovieClip is not a member of MovieClip like in:
>    var bar = ({ foo : 117 }).bar;
> (BTW, why is { foo : 117}.foo illegal?)  Instead I get an undefined
> value in mc.  Am I missing something here?
>
> Keep up the good work - I'm currently evaluating haXe as an alternative
> to NeoSwiff (http://www.globfx.com/products/neoswiff/) which is also
> quite an impressive product but in our experience suffers a bit of being
> less than a good team player when working with other SWF-movies.  So far
> haXe seems to hold the most promise - and then it is open source!
>
>
> Michael Florentin
>
> --
> haXe - an open source web programming language
> http://haxe.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/haxe/attachments/20060406/e1a20c79/attachment.htm


More information about the Haxe mailing list