Re: Custom object constructors

2009-08-19 Thread Kevan Benson
. The signature of initialize is used by Class.new in Ruby; the signature of __init__ is used by class_name() in Python... How is doing the same thing too much magic? Or am I misunderstanding the suggestion? On 8/19/09, Kevan Benson kben...@a-1networks.com wrote: Should there not be a way to define object

Re: Custom object constructors

2009-08-20 Thread Kevan Benson
Moritz Lenz wrote: Kevan Benson wrote: Should there not be a way to define object constructors with custom signatures that can be usefully invoked like a normal constructor? Currently, defining a BUILD method for a class with a specific signature doesn't seem to allow for the object

Re: Custom object constructors

2009-08-20 Thread Kevan Benson
Jan Ingvoldstad wrote: On Thu, Aug 20, 2009 at 10:44 PM, Kevan Benson kben...@a-1networks.comwrote: That said, I submit that it's a very confusing part of the language as defined currently, and I haven't seen a very thorough explanation of the purpose of each method in the chain

Re: The obligation of free stuff: Google Storage

2010-06-17 Thread Kevan Benson
pattern for it (in addition to whatever specific functionality it needs) makes sense, IMHO. Doesn't it make sense to just make it a method for the class/role? my Amazon $fn .= open($path-to-input-file-location/$file-name, :r) or die $!; -- Kevan Benson A-1 Networks