This is a recognized way of initializing a class, you can call them
different things, but if they are the same thing why give them different
names? The this keyword tells you exactly what is going on. I don't think
its bad code.

Just my opinion.
Jim

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks
| BLITZ
Sent: 07 November 2006 20:05
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Freelancer Class

> I don't know if it's a remnant.
> 
> You may be doing property initialization and need to nail down scope:
> 
> class Student {
> 
> private var name:String
> 
> function Student( name:String ) {
>    this.name = name;
> }
> }

That's just bad coding.  Don't use class variable names as argument
names.  It's not like you don't have a choice about it.  ;)
_______________________________________________
[email protected]
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

_______________________________________________
[email protected]
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

Reply via email to