Re: The obligation of free stuff: Google Storage

2010-06-17 Thread Kevan Benson
system access 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

Re: Custom object constructors

2009-08-20 Thread Kevan Benson
Jan Ingvoldstad wrote: On Thu, Aug 20, 2009 at 10:44 PM, Kevan Benson wrote: 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 the instantiates a new ob

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-19 Thread Kevan Benson
rote: I'm confused. 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 wrote: Should there not be a way to d

Custom object constructors

2009-08-19 Thread Kevan Benson
d the room. (2009-08-19 12:06:30) masak: Kentrak: only the other day, I found out that you can easily create a new() multimethod which does delegation using callsame(|$args) or nextsame(|$args). that might be what you want. (2009-08-19 12:06:36) Kentrak: jnthn: yes, aware of that, looking for a way to not have to redefine multiple pieces to accomplish what I think should be a simple feat, defining an initializer with custom params -- -Kevan Benson -A-1 Networks