On Mar 26, 2007, at 3:30 AM, Guyren Howe wrote:
> On Mar 26, 2007, at 3:05 AM, Lars Jensen wrote:
>
>>> Dim Year, Month, Day As Integer = ParseDate(someValue)
>>
>> Note: this syntax is already legal in RB. That's my biggest worry
>> with
>> this idea: that the syntax will prove too cumbersome or too
>> subtle, at
>> which point we might as well stick with ByRef.
>
> That's a good point. But I'm sure you could come up with something.
> Perhaps you just can't declare type and assign in one line:
>
> Dim Year, Month, Day As Integer
> Year, Month, Day = ParseDate(someValue)
That could end up being such a subtle distinction that it's hard to
explain to people especially since the syntax Lars proposed already
exists
Along the lines of why this causes issues
Dim d1, d2 as new Date
A type safe way to create a "tuple" as a return value or as a built
in class so you COULD say
return 1,2,3
and easily unpack it would be almost ideal
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>