[Openmcl-devel] I need a new macptr type

Gary Byers gb at clozure.com
Sat Jun 11 20:23:19 PDT 2005



On Sat, 11 Jun 2005, alex crain wrote:

>
> I need to create a new macptr type, ie:
>
> (defconstant objc-type-flags (byte 3 20))
> (defconstant objc-type-index (byte 20 0))
> (defconstant objc-flag-instance 0)
> (defconstant objc-flag-class 1)
> (defconstant objc-flag-metaclass 2)
> (defconstant objc-flag-undeclared-class 3)        ; this is new
>
> Is there any reason why I can't do this?
> I don't see one, but it never hurts to check.
>
> :alex
>

The defined flags are all relative to the "objc foreign type domain";
adding a new ObjC flag wouldn't conflict with any (eventual) use
of a similar-valued flag in some other foreign type domain (e.g.,
CFTypes.)



More information about the Openmcl-devel mailing list