BUILD and other submethods

2005-05-16 Thread Ingo Blechschmidt
Hi, class Foo { submethod BUILD() { say 42; } } class Bar is Foo { submethod BUILD() { say 23; } } my Bar $bar .= new; I suppose this will output: 42 23 S12 says that submethod[s] [are] called only when a method call is dispatched

Re: BUILD and other submethods

2005-05-16 Thread Larry Wall
On Mon, May 16, 2005 at 02:59:11PM +, Ingo Blechschmidt wrote: : Hi, : : class Foo { : submethod BUILD() { : say 42; : } : } : : class Bar is Foo { : submethod BUILD() { : say 23; : } : } : : my Bar $bar .= new; : : I suppose this will