[Petal] [PATCH] Options via constructor rather than package globals

William McKee william at knowmad.com
Thu Jun 5 11:04:09 BST 2003


On Thu, Jun 05, 2003 at 02:47:50PM +0100, Steve Purkis wrote:
> No, it's from Smalltalk.  (But then, Java copied everything from there 
> so... ;-)
> By default, methods return the current object in Smalltalk.  It's 
> almost like an implicit 'with' statement...

Thanks for the history lesson. I've heard good things about Smalltalk
but don't grok this concept. It looks to me like you are calling
multiple object methods which I suppose makes sense if the object is
returned each time. Nonetheless, I'm still of the opinion that it's
atypical syntax for a Perl module. Simply passing the settings as a hash
ref seems sufficient to me.

Thanks,
Wm

-- 
Knowmad Services Inc.
http://www.knowmad.com


More information about the Petal mailing list