[Openmcl-devel] cclx8632

R. Matthew Emerson rme at clozure.com
Thu Dec 18 13:14:51 PST 2008


On Dec 18, 2008, at 3:55 PM, Hongbin Wang wrote:

> I'm still running Tiger on my intel macbook pro. I'm glad to notice  
> there is a prerelease of cclx8632. It runs fine and I can load cocoa- 
> ide.
> But when I do
> (#/stringWithString: ns:ns-string "hello")
>
> it complains,
> > Error: value "hello" is not of the expected type (OR MACPTR NULL).
> > While executing: CCL::%COERCE-TO-ADDRESS, in process Listener(5).
> > Type :POP to abort, :R for a list of available restarts.
> > Type :? for other options.
>
> The same form returns ok when I test it with cclx8664 on my another  
> leopard mac.
>
> Is this a bug?

The Objective-C bridge doesn't automatically coerce lisp strings to  
NSStrings any more.

(#/stringWithString: ns:ns-string #@"hello")

would work.  The #@"some string" is like @"some string" in Objective- 
C: both denote an NSString.





More information about the Openmcl-devel mailing list