chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] DBI


From: felix winkelmann
Subject: Re: [Chicken-users] DBI
Date: Thu, 28 Feb 2008 08:50:43 +0100

On Wed, Feb 27, 2008 at 10:35 PM, Graham Fawcett
<address@hidden> wrote:
>
>  (void) returns the unspecified value, in Chicken, #<unspecified> -- as
>  does (values). But the unspecified value is a value, and can be tested
>  for identity with eq?.

Bu it is unspecified! How can you compare the identity of something
that has none? "void" means: the return value is not specific and may
even be different over multiple invocations. It gives the compiler the
opportunity to not worry about returning some particular value, since
it indicates that a computation was performed solely for it's
side effects.

In short: don't rely on the result of "void". It's reason of existence
is to have something to return as a result that should not be
relied on.


cheers,
felix




reply via email to

[Prev in Thread] Current Thread [Next in Thread]