at:tutorial:reflection
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
at:tutorial:reflection [2007/10/08 13:31] – tvcutsem | at:tutorial:reflection [2008/08/01 14:42] – * tvcutsem | ||
---|---|---|---|
Line 23: | Line 23: | ||
>def inspectable := object: { | >def inspectable := object: { | ||
def map(arg1, @restArgs) { restArgs.map(arg1); | def map(arg1, @restArgs) { restArgs.map(arg1); | ||
- | >>< | + | >>< |
>def mirrorOnInspectable := reflect: inspectable; | >def mirrorOnInspectable := reflect: inspectable; | ||
- | >>< | + | >>< |
> | > | ||
>> | >> | ||
Line 52: | Line 52: | ||
>def runTest(obj) { | >def runTest(obj) { | ||
| | ||
- | | + | |
>>< | >>< | ||
> | > | ||
Line 106: | Line 106: | ||
The **Object Passing Protocol** consists of two methods '' | The **Object Passing Protocol** consists of two methods '' | ||
- | The **Slot Access and Modification Protocol** consists of operations which allow trapping both access and modification to slots. These operations are further refined based on whether they transitively search the dynamic or lexical parent chain. For instance, | + | The **Slot Access and Modification Protocol** consists of operations which allow trapping both dynamic |
The **Structural Access Protocol** consists of operations used list all available slots, get access to a first-class slot representation and to add new slots to an existing object. The '' | The **Structural Access Protocol** consists of operations used list all available slots, get access to a first-class slot representation and to add new slots to an existing object. The '' |
at/tutorial/reflection.txt · Last modified: 2010/11/16 16:32 by tvcutsem