[Openmcl-devel] LUI with OpenGL (was: bad impressions to Lisp newbies)

Alexander Repenning ralex at cs.colorado.edu
Sat Apr 25 19:02:25 UTC 2009


Hi Ralph,

did you evaluate the class definition and the two methods immediately  
preceding the example?

Sounds to me as if XMLisp does not recognize the name attribute. This  
could happen if the class has not been defined. Then XMLisp tries to  
make an XML element of a generic class.

Note to self: remove this kind of robustness. It rarely produces  
meaningful results.

thanks and all the best,  Alex


On Apr 25, 2009, at 12:06 PM, Raffael Cavallaro wrote:

>
> On Apr 25, 2009, at 12:58 AM, Alexander Repenning wrote:
>
>> Let me know if you can crash this.
>
> This example code from "test case examples.lisp"
>
> <application-window title="OpenGL 3D" margin="12" width="300"
> height="300">
>   <column align="stretch" valign="stretch">
>     <row minimize="vertical" align="stretch" valign="middle">
>        <label text="red" align="right" width="50"/>
>        <slider name="red" action="adjust-vertex-color-action" max-
> value="1.0" flex="1"/>
>        <label text="0.00" name="red label" width="40"/>
>     </row>
>     <row minimize="vertical" align="stretch" valign="middle">
>        <label text="green" align="right" width="50"/>
>        <slider name="green" action="adjust-vertex-color-action" max-
> value="1.0" flex="1"/>
>        <label text="0.00" name="green label" width="40"/>
>     </row>
>     <row minimize="vertical" align="stretch" valign="middle">
>        <label text="blue" align="right" width="50"/>
>        <slider name="blue" action="adjust-vertex-color-action" max-
> value="1.0" flex="1"/>
>        <label text="0.00" name="blue label" width="40"/>
>     </row>
>     <spacer height="12"/>
>     <triangle-opengl-dialog name="opengl" vflex="1"/>
>     <spacer height="12"/>
>     <row align="stretch" valign="stretch" vflex="2">
>       <triangle-opengl-dialog name="opengl2" flex="1"/>
>       <spacer height="12" width="12"/>
>       <triangle-opengl-dialog name="opengl3" flex="1"/>
>     </row>
>   </column>
> </application-window>
>
> results in this error:
>
>> Error: class: XML-CONTENT does not have slot matching attribute
> name: NAME
>> While executing: #<STANDARD-METHOD SET-ATTRIBUTE-VALUE (XML-
> SERIALIZER T T)>, in process Listener(6).
>> Type :POP to abort, :R for a list of available restarts.
>> Type :? for other options.
>
> warmest regards,
>
> Ralph
>
>
>
>
> Raffael Cavallaro, Ph.D.
> raffaelcavallaro at mac.com
>
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> http://clozure.com/mailman/listinfo/openmcl-devel
>

Prof. Alexander Repenning

University of Colorado
Computer Science Department
Boulder, CO 80309-430

vCard: http://www.cs.colorado.edu/~ralex/AlexanderRepenning.vcf


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clozure.com/pipermail/openmcl-devel/attachments/20090425/f463db7e/attachment.html>


More information about the Openmcl-devel mailing list