From: Josef 'Jupp' Schugt Date: 2003-07-04T22:43:39+09:00 Subject: Re: Using & for arrays of objects Saluton! * Rudolf Polzer; 2003-07-04, 09:43 UTC: > Scripsit ille �Robert Klemme� : > > > > > class Human < Beer > > > > Hm, I find this modeling a tad bit unrealistic. > > Beer = Be-er = someone who is ^_^ Could also mean a BeOS user. > > In fact we both made an error here: you need a factory and a > > helper class (both sub classes of Human) to create a new Human. > > Which Ruby doesn't support: an object cannot be created without > using a constructor. Well, the correct terminus technicus in this case is *creator*, not *constructor*. An instance of Human is made by a creator that (depending on circumstances) takes up to two instances of Human to form a new instance of Human as in (for details see Gen 2 and Gen 4): adam = Human.new() eve = Human.new(adam) kain = Human.new(adam,eve) The single-argument form not requires h.gender == male as can be seen from jesus = Human.new(mary) > So how is the "first" object created? That question does exist as long as philosophy. I think that we are not expected to solve this here: Gis, Josef 'Jupp' Schugt -- Someone even submitted a fingerprint for Debian Linux running on the Microsoft Xbox. You have to love that irony :). -- Fyodor on nmap-hackers@insecure.org