Re: Synposis 26 - Documentation [alpha draft]

2006-10-12 Thread Tim Bunce
On Thu, Oct 12, 2006 at 03:57:01PM -0700, Jonathan Lang wrote: > Tim Bunce wrote: > >Damian Conway wrote: > >> Dave Whipp wrote: > >> >I'm not a great fan of this concept of "reservation" when there is no > >> >mechanism for its enforcement (and this is perl...). > >> > >> What makes you assume the

Synposis 26 - Documentation [alpha draft]

2006-10-12 Thread Jonathan Lang
Tim Bunce wrote: Damian Conway wrote: > Dave Whipp wrote: > >I'm not a great fan of this concept of "reservation" when there is no > >mechanism for its enforcement (and this is perl...). > > What makes you assume there will be no mechanism for enforcement? The > standard Pod parser (of which I ha

Re: Synposis 26 - Documentation [alpha draft]

2006-10-12 Thread Tim Bunce
On Thu, Oct 12, 2006 at 02:55:57PM +1000, Damian Conway wrote: > Dave Whipp wrote: > > >I'm not a great fan of this concept of "reservation" when there is no > >mechanism for its enforcement (and this is perl...). > > What makes you assume there will be no mechanism for enforcement? The > stand

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

2006-10-12 Thread larry
Author: larry Date: Thu Oct 12 14:52:22 2006 New Revision: 13096 Modified: doc/trunk/design/syn/S01.pod doc/trunk/design/syn/S05.pod Log: Changed enforced backtracking from + to ! to avoid conflicting with Friedl's ++ Modified: doc/trunk/design/syn/S01.pod

Re: Runtime role issues

2006-10-12 Thread Aaron Sherman
Ovid wrote: The "intermediate class" solves the problem but it instantly suggests that we have a new "design pattern" we have to remember. Basically, if I can't lexically scope the additional behavior a role offers, I potentially need to remove the role or use the "intermediate class" pattern.

Re: Runtime role issues

2006-10-12 Thread Larry Wall
On Thu, Oct 12, 2006 at 09:27:53AM -0700, Jonathan Lang wrote: : To modify a class at runtime, use C. C is compile time. You'd have to eval it. Larry

Re: Runtime role issues

2006-10-12 Thread Jonathan Lang
Miroslav Silovic wrote: Paul Seamons wrote: > > On closer inspection, is it even possible to add a Role to a Class at > runtime? > If it isn't now, I would certainly like to have a hook available through MOP (which is, to the best of my knowledge, still unspecified). To modify a class at runti

Re: class interface of roles

2006-10-12 Thread Jonathan Lang
TSa wrote: HaloO, Jonathan Lang wrote: > Still not following. Can you give an example? The example in the original post contains a class GenSquare that has got an equal method that checks the sides of the self square and the incoming argument square. The GenPointMixin role provides an equal me

Re: Runtime role issues

2006-10-12 Thread Miroslav Silovic
Paul Seamons wrote: On closer inspection, is it even possible to add a Role to a Class at runtime? If it isn't now, I would certainly like to have a hook available through MOP (which is, to the best of my knowledge, still unspecified). I thought that Class and Role composition outside

Re: class interface of roles

2006-10-12 Thread TSa
HaloO, Jonathan Lang wrote: Still not following. Can you give an example? The example in the original post contains a class GenSquare that has got an equal method that checks the sides of the self square and the incoming argument square. The GenPointMixin role provides an equal method that co