V4MD Noob: VOID instead of Vset with zero records?

Sean Wilson snw at paradise.net.nz
Mon Apr 21 18:27:01 CDT 2008


>But, just to clarify my point of view: Let's say you manipulate a 
>string and the resulted string would have zero characters in it, 
>would you expect that this result becomes an 'undefined' object and 
>had lost all its string-functionality? And then you would have to 
>substitute this undefined object everytime with a handmade empty string?

Absolutely not. I, too, would be horrified.
Perhaps you should post a code snippet. From your original post it 
sounded as though you were calling an xtra function that returned a 
value that you *expected* was going to be a list but was VOID. All I 
was trying to say - and it sounds like you agree - is that if you 
call an "external" function that returns data to you and you are 
relying on this data to be of a particular type before proceeding, 
then it's incumbent on you to type-check. Lingo is a loosely typed 
language and so permits all kinds of slop.

Cheers,
-Sean. 




More information about the Valentina mailing list