Re: Object-oriented preprocessor

new topic     » goto parent     » topic index » view thread      » older message » newer message
Icy_Viking said...

I wonder if this would work making wrappers?

Something like

include classes.e 
 
sequence TRect = class("TRect") 
TRect = addProperty(TRect,atom x,"") 
TRect = addProperty(TRect,atom y,"") 

Would that work or would I be on the right track?

Actual syntax would be:

TRect = addProperty(TRect,"x",0)  
TRect = addProperty(TRect,"y",0)  

x and y are objects in the actual code.

sequence TRect is stored as

{"TRect", {{"x",0}, {"y",0}}, {}} 

You probably want it to be in another format.

Jean-Marc

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu