Thought question: Where does "new" come from?

I enjoy these kinds of discussions, but they make my head hurt. :wink:

BTW, thanks for translating that German page before. In spite of my last name,
my German is limited to what I was able to pick up on Hogan’s Heroes as a kid.
:wink:

Christopher J. Meisenzahl CPS, CSTE
Senior Software Testing Consultant
Spherion
christopher.j.meisenzahl@citicorp.com

···

-----Original Message-----
From: hal9000 [mailto:hal9000@hypermetrics.com]
Sent: Thursday, August 15, 2002 2:33 AM
To: ruby-talk
Cc: hal9000
Subject: Thought question: Where does “new” come from?

I’ve been brooding again on the circularities
in Ruby’s classes.

Now I’m thinking of a particular question:
How would you explain where “new” comes from
in a class?

It’s easy to say that all classes are objects
of the type Class.

So for example, Object has a “new” because it’s
a Class. But on the other hand, Class is an
Object.

Would you say that Object gets “new” from Class,
or vice versa? Or neither? Or should I just not
worry about it?

This arose because I was trying to draw a picture
of Ruby’s entire object model.

Comments, anyone? Matz, Dave, Guy, David? Others?

It’s 1:35 a.m. my time. I should go to bed. I’ve
probably said something incorrect in this email.

Hal