one nice thing would be to add a '_p' (for param) suffix
function Student (name_p:String) {
this.name = name_p;
}
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ
Sent: Tuesday, November 07, 2006 12:05 PM
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. ;)
I don't think it's "bad" coding. Documentation generated from this
signature might be a bit clearer than documentation generated from a
signature where the argument was, e.g., "nameValue", since it would be
more immediately obvious that the argument "name" corresponds to the
property "name". That said, the code itself is clearer the other way.
Six of one and half a dozen of the other. (Programming is so often
like
that.)
--
Mike Keesey
_______________________________________________
[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