Re: Class attribute introspection

2013-10-28 Thread Richard Hainsworth
This and the response from Elizabeth raise in my mind the following question: To what extent are papers/specifications from other parts of the computer science world implicitly a part of the Perl6 specification? I found references to 'getters and setters' in the synopsis on objects, but without

Re: Class attribute introspection

2013-10-28 Thread Carl Mäsak
The MOP is an API to the object-oriented system. With it, you can query classes and their attributes and methods about their properties. It can also be used to create whole new classes (or other types) programatically. Languages that have a MOP have a great advantage because, even though the objec

Re: Class attribute introspection

2013-10-28 Thread Elizabeth Mattijsen
Maybe http://en.wikipedia.org/wiki/Metaobject is a good start for reading up on what a MOP (Meta-Object Protocol) is. Liz === On 28 Oct 2013, at 14:17, Richard Hainsworth wrote: > Moritz, > > You are the everflowing font of knowledge. Thanks. > > However, I read the synopsis on ob

Re: Class attribute introspection

2013-10-28 Thread Patrick R. Michaud
On Mon, Oct 28, 2013 at 05:17:37PM +0400, Richard Hainsworth wrote: > Pardon the ignorance, but what is "the MOP". I sometimes get floored > by the jargon. Whatever answer we get should go into S99. https://github.com/perl6/specs/blob/master/S99-glossary.pod Pm

Re: Class attribute introspection

2013-10-28 Thread Richard Hainsworth
Moritz, You are the everflowing font of knowledge. Thanks. However, I read the synopsis on objects and did not find the .get_value method. Pardon the ignorance, but what is "the MOP". I sometimes get floored by the jargon. I read about the indirection for methods, but how does that relate

Re: Class attribute introspection

2013-10-28 Thread Moritz Lenz
Hi Richard, On 10/28/2013 08:07 AM, Richard Hainsworth wrote: Perhaps I am using class incorrectly, but I set up a class, then change some of the parameters in an instance of the class. Next I would like to discover what the current state of the instance is. There is a way to introspect throug

Class attribute introspection

2013-10-28 Thread Richard Hainsworth
Perhaps I am using class incorrectly, but I set up a class, then change some of the parameters in an instance of the class. Next I would like to discover what the current state of the instance is. However, I could find no specification of how to access multiple attributes, as opposed to multip