newLISP Fan Club

Forum => newLISP Graphics & Sound => Topic started by: cormullion on January 22, 2009, 11:05:11 AM

Title: objects in guiserver
Post by: cormullion on January 22, 2009, 11:05:11 AM
What's the best way to do this task? I want to place three or four copies of a graphical object onto a canvas, each one behaving slightly differently, but using the same code basic code. I don't think I can use FOOP-style objects, because they aren't modifiable (so I couldn't vary key parameters). Also, the objects need to be drawn once at the start, then modified continually in response to events.
Title:
Post by: shercipher on May 10, 2009, 09:06:47 PM
In CL the answer would be macros. In NL I'm pretty sure the answer is still macros. What exactly are you trying to accomplish (explain)?
Title:
Post by: cormullion on May 11, 2009, 09:34:17 AM
While I understand (basically :)) the FOOP approach, and use guiserver a lot, I can't work out how to do both at the same time. How to define an object and its behaviour, then to place multiple instances of that object on a canvas.



I've forgotten what I was trying to do, now...:)



I'm pretty sure the answer's not macros, though.