[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Should "new" methods do anything?

Weirich, James

9/12/2003 8:16:00 PM

From: Philip Mak [mailto:pmak@aaanime.net]
> Should "new" methods actually do anything, or should they only perform
> initialization?

I prefer the initialize only approach. If you tried to subclass Httpd, then
running from initialize might start the server before the subclass has
completed initialization.

And if you want streamlined, Aredridel suggested chaining run.

--
-- Jim Weirich / Compuware
-- FWP Capture Services
-- Phone: 859-386-8855