Re: Testing for NULL

new topic     » goto parent     » topic index » view thread      » older message » newer message
ghaberek said...
public type String( object x ) 
    return string( x ) or equal( x, NULL ) 
end type 

-Greg

I think there is value in having a distinct type that allow for the dummy value. Naming convention preferences aside I would call it StringOrNull but not String. I would make another type String that would NOT allow NULL.

public type String( object x ) 
    return string(x) 
end type 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu