Re: VOID

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

Mike wrote:

<snip>

> VOID wouldn't be necessary if it were possible to use functions as
> procedures, but I believe the dummy variable would be easier to implement.
> It also is more self-documenting:   VOID=my_routine(1,2,3) makes it clear
> that my_routine is a function whose return value I'm choosing to discard,
> while my_routine(1,2,3) might be a procedure.

I agree, that
     VOID = my_routine(1,2,3)
is more self-documenting, than just calling 'my_routine()', as if it
were a procedure.

My favourite would be something like
     _my_routine(1,2,3)
though.
This calls the function as a procedure, *and* it is self-documenting,
if the '_' at the beginning of a routine name will only be allowed in
this situation. It wouldn't break existing code.

Regards,
   Juergen

-- 
 /"\  ASCII ribbon campain  | "Everything should be made as simple
 \ /  against HTML in       |  as possible, but not simpler."
  X   e-mail and news,      |
 / \  and unneeded MIME     | [Albert Einstein]

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

Search



Quick Links

User menu

Not signed in.

Misc Menu