Re: VOID

new topic     » topic index » view thread      » older message » newer message

I'm not married to VOID: allowing functions to be called as procedures is
totally normal in C. And if another name were chosen, I'd retain VOID in
Diamond for backward compatibility but deprecate it.  Admittedly void is
easier to type.

I first used VOID in Eclasses back in 1998 (this was the precursor to Object
Euphoria, which was the precursor to Diamond).  The reason for the name was
the void return type in C, indication no return value.  I puts it in all
caps like a constant because I found that the apperntly grotesque appearance
of assigning to a "constant" reminded me of VOID's special purpose.  Also it
seemed resonable to use the same convention as for constants (read-only
variables) as for my write-only variable.

I've no doubt Derek invented VOID independently, no one used Eclasses and
few used Object Euphoria, so my use of VOID wasn't known until Diamond,
which is later that the use of VOID in Win32Lib.

-- Mike Nelson

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu