| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Hi, Are there any language describing action on classes : for example : c.addAttribute(int i) to add an attribute i of type integer to the class c c.addMethod( int get() ) to add an operation called get to the class c .... etc I want to make some changes to an object model, and i need a language to describe action to do. Thanks (excuse my English) |
|
#2
| |||
| |||
| caspertn <naoufel_machta@yahoo.fr> writes: > Are there any language describing action on classes : > > for example : > > c.addAttribute(int i) to add an attribute i of type integer to the > class c > c.addMethod( int get() ) to add an operation called get to the class > c > ... etc > > I want to make some changes to an object model, and i need a language > to describe action to do. > > Thanks > (excuse my English) Your English is fine. What you're looking for is called a "meta-object protocol". I don't know what language you're targeting, but the best known MOP is in Lisp: http://wiki.alu.org/Metaobject_Protocol By the way, _The Art of the Metaobject Protocol_ by Gregor Kiczales is well worth reading regardless of the languages you use. Regards, Patrick ------------------------------------------------------------------------ S P Engineering, Inc. | Large scale, mission-critical, distributed OO | systems design and implementation. pjm@spe.com | (C++, Java, Common Lisp, Jini, middleware, SOA) |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.