how to change the type of objects

2006-11-10 Thread TSa
HaloO, I wonder how an object can change its type without loosing its identity. Consider two types Rectangle and Polygon with Rectangle a subtype of Polygon. Now if there is a method add_vertex in the Polygon type, calling it on a Rectangle warps the object out of the Rectangle type into a Polygo

[svn:perl6-synopsis] r13474 - doc/trunk/design/syn

2006-11-10 Thread larry
Author: larry Date: Fri Nov 10 11:14:19 2006 New Revision: 13474 Modified: doc/trunk/design/syn/S12.pod Log: Clarification from cmarcelo++. Modified: doc/trunk/design/syn/S12.pod == --- doc/trunk/design/syn/S12.pod

Re: how to change the type of objects

2006-11-10 Thread Darren Duncan
At 1:24 PM +0100 11/10/06, TSa wrote: HaloO, I wonder how an object can change its type without loosing its identity. Consider two types Rectangle and Polygon with Rectangle a subtype of Polygon. Now if there is a method add_vertex in the Polygon type, calling it on a Rectangle warps the object