Re: [Flashcoders] Abstract classes in AS3?

2006-07-14 Thread Nicolas Cannasse
> Where can I find the source code of HaXe written in HaXe itself. I think > is one of the important milestones for a compiler, the possibility to > compile the compiler with itselves :) Not always. The AS3 compiler is not written in AS3. Haxe is using OCaml which is IMHO the best language to wr

Re: [Flashcoders] Abstract classes in AS3?

2006-07-14 Thread Nicolas Cannasse
>>>2) Have methods which are not attached to specific class instances. >> >>That's a bit like static methods no ? > > > I was incomplete. I should have said, "Have *bundled* methods which are > not attached to specific class instances." That is, I want to be able to > have groups of static method

RE: [Flashcoders] Abstract classes in AS3?

2006-07-14 Thread Nivesh Rajbhandari
as package { public function HelloWorld() { trace("Hello, World!"); } } // test.fla HelloWorld(); -Nivesh QE Lead, Flash | Adobe Systems -- Message: 5 Date: Wed, 12 Jul 2006 09:16:41 -0700 From: "Mike" <[EMAIL PROTECTED]&

Re: [Flashcoders] Abstract classes in AS3?

2006-07-12 Thread Weyert de Boer
Where can I find the source code of HaXe written in HaXe itself. I think is one of the important milestones for a compiler, the possibility to compile the compiler with itselves :) ___ Flashcoders@chattyfig.figleaf.com To change your subscription optio

RE: [Flashcoders] Abstract classes in AS3?

2006-07-12 Thread Mike
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nicolas Cannasse Sent: Wednesday, July 12, 2006 1:16 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Abstract classes in AS3? > > Mike Keesey wrote: > > I don't really care w

Re: [Flashcoders] Abstract classes in AS3?

2006-07-12 Thread Weyert de Boer
Yeah, well I don't need the onion skinning tool either so let's remove it ;-) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by F

Re: [Flashcoders] Abstract classes in AS3?

2006-07-12 Thread Nicolas Cannasse
> I don't really care whether they allow private constructors or not, as > long as they provide some way of accomplishing the same thing. > Specifically, I want to be able to: > 1) Limit the number of instances of certain classes (singletons, > enumerations). Did you have a look at haXe enums ? ht

RE: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread Mike
I don't really care whether they allow private constructors or not, as long as they provide some way of accomplishing the same thing. Specifically, I want to be able to: 1) Limit the number of instances of certain classes (singletons, enumerations). 2) Have methods which are not attached to specifi

RE: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread Francis Cheng
006 11:45 AM > To: 'Flashcoders mailing list' > Subject: RE: [Flashcoders] Abstract classes in AS3? > > That does seem stupid and completely pointless. I use private > constructors all the time. > > Is there an official rationale for this? > -- > T. Michael Keesey &g

Re: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread eka
tructors? > -- > T. Michael Keesey > > -----Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of eka > Sent: Tuesday, July 11, 2006 11:45 AM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] Abstract clas

Re: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread Cédric Néhémie
eesey > > -Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of eka > Sent: Tuesday, July 11, 2006 11:45 AM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] Abstract classes in AS3? > > private constructor is not ECMAScript ! &g

RE: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread Mike
ent: Tuesday, July 11, 2006 11:45 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Abstract classes in AS3? private constructor is not ECMAScript ! to create a Singleton you can use a simple object inherit "internal" class, it's more clean :) links about this subject :

Re: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread eka
hael Keesey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cédric Néhémie Sent: Tuesday, July 11, 2006 11:30 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Abstract classes in AS3? Chris, from the latest AS3 Language Reference (http://livedocs.macromedia

Re: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread eka
private constructor is not ECMAScript ! to create a Singleton you can use a simple object inherit "internal" class, it's more clean :) links about this subject : http://blog.jasonnussbaum.com/?p=112 french discussion about this subject : http://groups.google.com/group/FCNG/browse_thread/thread/

RE: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread Mike
: Flashcoders mailing list Subject: Re: [Flashcoders] Abstract classes in AS3? Chris, from the latest AS3 Language Reference (http://livedocs.macromedia.com/flex/2/langref/index.html), in compile-time errors section : 1153 - A constructor can only be declared public I don't understand why

Re: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread Weyert de Boer
Why is it removed? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Tra

Re: Re: Re: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread Chris Allen
Yep, Just realized you guys were talking AS3. My bad. -Chris On 7/11/06, eka <[EMAIL PROTECTED]> wrote: Hello ;) In AS3 the private keyword it's removed !! ;) You can't use this keyword for your constructor :) EKA+ :) 2006/7/11, Chris Allen <[EMAIL PROTECTED]>: > > For compile time checks,

Re: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread Cédric Néhémie
Chris, from the latest AS3 Language Reference (http://livedocs.macromedia.com/flex/2/langref/index.html), in compile-time errors section : 1153 - A constructor can only be declared public I don't understand why Adobe do that ? If somebody have an idea, I'ld be buyer ? Chris Allen wrote: > For c

Re: Re: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread eka
Hello ;) In AS3 the private keyword it's removed !! ;) You can't use this keyword for your constructor :) EKA+ :) 2006/7/11, Chris Allen <[EMAIL PROTECTED]>: For compile time checks, just use a private constructor. As ActionScript allows one to access a private (not really private) super cons

RE: Re: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread Geoffrey Williams
AS3 doesn't support private constructors. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Allen Sent: Tuesday, July 11, 2006 2:06 PM To: Flashcoders mailing list Subject: Re: Re: [Flashcoders] Abstract classes in AS3? For compile time checks,

Re: Re: [Flashcoders] Abstract classes in AS3?

2006-07-11 Thread Chris Allen
For compile time checks, just use a private constructor. As ActionScript allows one to access a private (not really private) super constructor in a subclass this works perfectly. At least this is what I do when I need an Abstract class in ActionScript. E.G. class com.tomsnyder.fasttmath2.student

Re: [Flashcoders] Abstract classes in AS3?

2006-07-09 Thread julien castelain
thanks for the example guys :) On 7/9/06, Weyert de Boer <[EMAIL PROTECTED]> wrote: I still think compile-time checks are the best to have... but this will serve very well. Thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription optio

Re: [Flashcoders] Abstract classes in AS3?

2006-07-09 Thread Weyert de Boer
I still think compile-time checks are the best to have... but this will serve very well. Thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Abstract classes in AS3?

2006-07-09 Thread Cédric Néhémie
Eka you are the fastest :) eka wrote: > Hello :) > > Try this method : > > package > { > > > import flash.utils.getQualifiedClassName; > import flash.errors.IllegalOperationError; > > class AbstractClass > { >public function AbstractClass () >{ >var path:String = getQualifiedClassN

Re: [Flashcoders] Abstract classes in AS3?

2006-07-09 Thread Cédric Néhémie
Hi everybody, I'm new to this list (as poster) so thnaks , in advance, for your welcome. > I am blind or is their no support for Abstract classes in AS3? > No you aren't blind, the class constructor must be public, then we can't guarantee that class can't be instanciate. The same problem occurs w

Re: [Flashcoders] Abstract classes in AS3?

2006-07-09 Thread Weyert de Boer
Nice hack if you aks me. Thanks. Based on this hack I can be sure it's not supported. Sadly enough. Oh well, thanks for sharing the hack. Yours, Weyert Hello :) Try this method : package { import flash.utils.getQualifiedClassName; import flash.errors.IllegalOperationError; class AbstractCl

Re: [Flashcoders] Abstract classes in AS3?

2006-07-09 Thread eka
Hello :) Try this method : package { import flash.utils.getQualifiedClassName; import flash.errors.IllegalOperationError; class AbstractClass { public function AbstractClass () { var path:String = getQualifiedClassName(this) ; if( path == "AbstractClass") {