Opened 7 years ago

Last modified 7 years ago

#1233 new defect

Documentation on creating a ns-number is incorrect

Reported by: brettmorgan Owned by:
Priority: normal Milestone:
Component: Objective-C Bridge Version: 1.9
Keywords: instantiation Cc:

Description

Following the documentation at http://ccl.clozure.com/ccl-documentation.html#Instantiating-Objective-C-Objects leads to the following fail. Please help?

Welcome to Clozure Common Lisp Version 1.9-store-r16161 (DarwinX8664)! ? (require "COCOA") "COCOA" NIL ? (make-instance 'ns:ns-number :init-with-int 42) #<A Null Foreign Pointer>

Change History (2)

comment:1 Changed 7 years ago by brettmorgan

Making the formatting sane.

Welcome to Clozure Common Lisp Version 1.9-store-r16161  (DarwinX8664)!
? (require "COCOA")
"COCOA"
NIL
? (make-instance 'ns:ns-number :init-with-int 42)
#<A Null Foreign Pointer>

comment:2 Changed 7 years ago by gb

Yes, the documentation needs to be updated. The idiom is:

? (make-instance 'ns:ns-number :with-int 42)
#<NS-NUMBER 42 (#x2A87)>
Note: See TracTickets for help on using tickets.