Gabriel Dos Reis <gdr@...> wrote:
> On Wed, Jan 21, 2009 at 12:08 PM, Didier Verna <didier.verna@...> wrote:
>> Hello !
>> On my MacBook Pro, I have SBCL 126.96.36.199 which gives:
>> (sb-posix:getenv nil) ;; => NIL
>> On my Linux box, I have SBCL 188.8.131.52 which gives:
>> (sb-posix:getenv nil)
>> debugger invoked on a SB-SYS:MEMORY-FAULT-ERROR: Unhandled memory fault at #x0.
> This is most probably a side effect of mac os not signaling a sigsev
> on dereferencing a null pointer -- quite common 'mistake' on mac os.
I have yet to upgrade my SBCL on Mac and compare the result.
Nevertheless, I sort of like getenv (nil) => nil, and it seems very
rude to get a memory fault from a Lisp program...
 At first, I even thought I could rely on it.
Resistance is futile. You will be jazzimilated.
Scientific site: http://www.lrde.epita.fr/~didier
Music (Jazz) site: http://www.didierverna.com
EPITA/LRDE, 14-16 rue Voltaire, 94276 Le Kremlin-Bicêtre, France
Tel. +33 (0)1 44 08 01 85 Fax. +33 (0)1 53 14 59 22