[Openmcl-devel] New snapshots available

Andrew Shalit alms at clozure.com
Sat Feb 17 20:32:55 UTC 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 [1] for the compiler to recognize cases where it can 

avoid

>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))
>    ...)
> 
> [1] easy for me to say, at least, since I'm not writing the compiler.
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> http://clozure.com/mailman/listinfo/openmcl-devel



More information about the Openmcl-devel mailing list