On Sunday, July 28, 2002, at 03:58 PM, Guyren G Howe wrote:
In response to your example, I think it would be quite simple to just make
all LValues optional.
I don't think that would be a good idea. It's just one more mistake that
that IDE wold no longer be able to catch for you.
I meant that ByRef is a kludge in the sense that you're implenting a
function that computes and returns multiple values, and using the
arguments
to the function to return the result is just weird (if you think about it)
.
I do agree that multiple return values is more elegant than a bunch of
byrefs in the function parameters.
ByRef should be reserved for the 2MB string kind of example you describe.
Except that everything (except numbers and colors) is passed by reference
anyway weather you specify it or not so byref is not necessary on that
case. Byref just lets you change the reference.
-Noah Desch
Wireframe Software
http://wireframe.virtualave.net
|