RE: [flexcoders] function / method argument validation

2008-09-08 Thread Alex Harui
validation - Original Message - From: Alex Harui<mailto:[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com<mailto:flexcoders@yahoogroups.com> Sent: Tuesday, September 09, 2008 1:21 AM Subject: RE: [flexcoders] function / method argument validation Instead of defining a function, you

Re: [flexcoders] function / method argument validation

2008-09-08 Thread Paul Andrews
- Original Message - From: Alex Harui To: flexcoders@yahoogroups.com Sent: Tuesday, September 09, 2008 1:21 AM Subject: RE: [flexcoders] function / method argument validation Instead of defining a function, you could define an interface But it still wouldn't have a

RE: [flexcoders] function / method argument validation

2008-09-08 Thread Alex Harui
Instead of defining a function, you could define an interface From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Monday, September 08, 2008 3:10 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] function / method argument validation No, AS3

RE: [flexcoders] function / method argument validation

2008-09-08 Thread Gordon Smith
No, AS3 doesn't support this. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rss181919 Sent: Monday, September 08, 2008 11:47 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] function / method argument validation Let&#x

[flexcoders] function / method argument validation

2008-09-08 Thread rss181919
Let's say I have the following call s myvar = myfuntion (arg1:x) Of course arg1 must be of type x or you get a compile time error. Is there any way to force arg1 to be of a certain value range within type x and have it checked at compile time? For example, is there a way to create a group of