Re: [Chicken-hackers] The use of the null-pointer and null-pointer? procedures

2011-05-12 Thread Felix
From: Peter Bex peter@xs4all.nl
Subject: Re: [Chicken-hackers] The use of the null-pointer and null-pointer? 
procedures
Date: Wed, 11 May 2011 17:14:15 +0200

 On Wed, May 11, 2011 at 08:21:32AM -0400, Felix wrote:
  On Wed, May 11, 2011 at 05:25:12AM -0400, Felix wrote:
   I was wondering what use does (null-pointer?) has.
  
  Historical. I will deprecate.
  
  Thanks, Felix.  I noticed the documentation says
  Another way to say (address-pointer 0).  Should the address-pointer
  procedure return #f when given 0?
 
 No, otherwise you couldn't create a pointer object containing a NULL
 pointer... :-) I think we can expect a user to be able to code this.
 
 I understand that this wouldn't be possible. But what is the reason
 this has to be possible, considering null pointers are represented
 as #f everywhere else?  For consistency it would make sense to return
 #f here too, but of course you could also argue that it would be more
 consistent to always return a pointer...

It's a low-level routine. For some reasons a user might want to create
a pointer object containing 0 bits. This stuff is nort needed by the FFI,
and AFACIT only there the NULL == #f idiom exists.


cheers,
felix

___
Chicken-hackers mailing list
Chicken-hackers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-hackers


Re: [Chicken-hackers] Using new chicken-install -reinstall

2011-05-12 Thread Felix
From: Kon Lovett konlov...@gmail.com
Subject: [Chicken-hackers] Using new chicken-install -reinstall
Date: Wed, 11 May 2011 19:41:31 -0700

 The new chicken-install -reinstall option in the experimental branch
 requires an addition to the extension infolist (.setup-info file
 contents), the egg-name-and-version. Below is a program which will,
 given an existing Chicken install  a local copy of the SVN egg repo,
 add the missing datum. Any eggs installed with the new, experimental,
 chicken-install will have the new info.

Boy, that was quick!

I changed the redundancy in the handling of the version number by
replacing egg-name-and-version with just egg-name. Please consider
modifying your very helpful script accordingly.


cheers,
felix

___
Chicken-hackers mailing list
Chicken-hackers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-hackers