Steven, I do see what you're getting at - having reviewed Danny's code, in this instance, you're right (and I was being too general and should have paid more attention!).
In the more general case, I disagree that AS2 gains nothing from type-checking. But you weren't being general. :-) Ian On 7/23/07, Steven Sacks <[EMAIL PROTECTED]> wrote:
You're "hacking" it either way. This one function is not going to cause coder confusion. You're leaving the type off so you can pass any type. Considering you type everything else, it's pretty obvious to anyone who looks at it what's going on. Adding extra lines of code that put a parameter into an object is possibly MORE confusing than leaving off a type which the next line shows exactly why (if param instanceof). AS3 has *, AS2 has blank. I think it's hacky to add more lines of code versus what I don't think is hacky which is leaving off a type in AS2. That's HOW you accept any type of param in AS2. Keep It Simple Stupid: http://en.wikipedia.org/wiki/KISS_principle :) _______________________________________________ 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