[Openmcl-devel] New snapshots available
alms at clozure.com
Sat Feb 17 15:32:55 EST 2007
In case it's not obvious, the word "avoid" was missing from my last e-mail:
> How about adding a macro that binds the components of a structure to variables?
> It should be pretty easy  for the compiler to recognize cases where it can
>actually allocating the object:
> (with-structure-components (frame-width frame-height)
> (ns:size (make-instance 'ns:ns-attributed-string :with-string "testing"))
> But then if you actually want the structure, you can get it:
> (let* ((frame (ns:make-rect x y width height)))
> (ns:init-with-frame& view frame))
>  easy for me to say, at least, since I'm not writing the compiler.
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
More information about the Openmcl-devel