[Openmcl-devel] A few quick ObjectiveC Bridge questions

Gary King gwking at metabang.com
Fri May 12 19:38:06 PDT 2006


Thanks for the bridge. It is really quite wonderful.

1. Is %null-ptr-p the "right" way to test for an object being null?  
For example, is this enumerator code canonical?

> (let ((enumerator (ccl::send people 'object-enumerator)))
> 	  (loop for person = (ccl::send enumerator 'next-object)
> 	     until (%null-ptr-p person) collect
>              person))

2. Why aren't things like #'send, #'lisp-string-from-nsstring, and so  
on exported? It seems to me that they should be.

3. Is #'%make-nsstring the "right" way to make nsstrings?

thanks,
-- 
Gary Warren King
metabang.com
http://www.metabang.com/
(413) 210 7511
gwking on #lisp (occasionally)





More information about the Openmcl-devel mailing list