<?xml version="1.0" encoding="windows-1252"?>
<node id="385027" title="Re: Solving compositional problems with Perl 6 roles" created="2004-08-23 04:53:53" updated="2005-06-01 17:57:11">
<type id="11">
note</type>
<author id="278227">
fergal</author>
<data>
<field name="doctext">
&lt;blockquote&gt;
with the idea of manipulating inheritance trees based upon an instance instead of a class (and all of the ridiculous problems that would bring.)
&lt;/blockquote&gt;

&lt;a href="http://www.cs.washington.edu/research/projects/cecil/www/cecil.html"&gt;Cecil&lt;/a&gt;
does this and seems to do it very nicely, although I've never used it, I just read their language specification.

&lt;p&gt;I'm curious about this bit of code

&lt;code&gt;
$elf does Thief; # hmm ... that reads funny
&lt;/code&gt;

is this attaching the methods at run time or at compile time? That is, do the methods stay attached to the object inside $elf or is it only treated as doing Thief in scope of this declaration? The second case would not be very useful and the first case basically amounts to "manipulating inheritance trees based upon an instance".
</field>
<field name="root_node">
384858</field>
<field name="parent_node">
384858</field>
</data>
</node>
