I agree with that. I set constants like that so I cant overwrite them on accident.
Jim -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Webster Sent: 20 March 2006 17:36 To: Flashcoders mailing list Subject: Re: [Flashcoders] Inconsistent Constant Ian, > Flash doesn't have the concept of constants, so you couldn't > enforce a constant even if you wanted to (except by a hack like > defining a null set() function, but that's beside the point a bit)... > you can only suggest that specific things should be constant by > convention It's not really beside the point. We define constants in this way... class Test { public static function get SOME_CONSTANT():String { return "value"; } } ...which works perfectly. -- Steve Webster Head of Development Featurecreep Ltd. http://www.featurecreep.com 14 Orchard Street, Bristol, BS1 5EH 0117 905 5047 _______________________________________________ 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 Training http://www.figleaf.com http://training.figleaf.com _______________________________________________ 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 Training http://www.figleaf.com http://training.figleaf.com