[osflash] haXe compiler preview

Scott Hyndman Scott at affsys.com
Mon Nov 14 10:47:01 EST 2005


I have a couple of questions.

I see you've carried on the "private" access mod instead of calling it "protected". I imagine you've done this for easy porting of projects to haXe, but it raises questions. How are you going to add FVM2 support without changing the meaning of "private" based on the target language of the build? For example, if I have a class:

package my.pack
{
  class MyClass {
    private function foo() {
      // ...
    }
  }
}

In this case, if I compile to FVM2, private will be private, but for FVM1 private will mean protected. Do you see the problem?

I know you haven't written in support for FVM2 yet, so maybe you have something up your sleeve. ;)

> A block evaluates to the type and value of the 
> last expression of the block.

Is this usually the case? It's kind of cool.

Oh, and I love the type inference stuff. I REALLY love the constraint parameters. I can't wait to try this stuff out.

Scott
_______________________________________________
osflash mailing list
osflash at osflash.org
http://osflash.org/mailman/listinfo/osflash_osflash.org



-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 2876 bytes
Desc: not available
Url : http://osflash.org/pipermail/osflash_osflash.org/attachments/20051114/beae4642/attachment.bin


More information about the osflash mailing list