Language describing action on classes

This is a discussion on Language describing action on classes within the Object forums in Theory and Concepts category; 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)...

Go Back   Application Development Forum > Theory and Concepts > Object

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 10-09-2008, 07:43 AM
caspertn
Guest
 
Default Language describing action on classes

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)
Reply With Quote
  #2  
Old 10-09-2008, 10:32 AM
Patrick May
Guest
 
Default Re: Language describing action on classes

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)
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 06:34 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.