chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] New immediate values (was: DBI)


From: John Cowan
Subject: Re: [Chicken-users] New immediate values (was: DBI)
Date: Thu, 28 Feb 2008 23:36:56 -0500
User-agent: Mutt/1.5.13 (2006-08-11)

Graham Fawcett scripsit:

> >  (define sql-null (new-immediate-value))
> >
> >  (define (sql-null? x) (eq? x sql-null))
> 
> I think that, to work well, we'd have to define it statically, so that
> all libraries using (sql-null) would have the same immediate value.
> E.g.
> 
> #>!
> static C_word sql_null = ((C_word) ((C_word)(C_SPECIAL_BITS | 0x00000040)));
> <#

I agree, and I'd be happy to see such a new object.  I'd like not to have
"sql" in the name, though, so that it can be used by interfaces to other
languages as well (Lua nil, Java null, etc.)

-- 
If you have ever wondered if you are in hell,         John Cowan
it has been said, then you are on a well-traveled     http://www.ccil.org/~cowan
road of spiritual inquiry.  If you are absolutely     address@hidden
sure you are in hell, however, then you must be
on the Cross Bronx Expressway.          --Alan Feuer, NYTimes, 2002-09-20




reply via email to

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