[#1378] differences between Module and Class ? — Mathieu Bouchard <matju@...>

25 messages 2003/08/11
[#1387] Re: differences between Module and Class ? — matz@... (Yukihiro Matsumoto) 2003/08/12

Hi,

[#1442] Re: differences between Module and Class ? — Mathieu Bouchard <matju@...> 2003/08/21

[#1406] _id2ref bug? — Ryan Pavlik <rpav@...>

While debugging some caching code, I've come across a segfault related

22 messages 2003/08/14
[#1407] Re: _id2ref bug? — matz@... (Yukihiro Matsumoto) 2003/08/14

Hi,

[#1413] Re: _id2ref bug? (REPRODUCED, short) — Ryan Pavlik <rpav@...> 2003/08/14

On Fri, 15 Aug 2003 01:57:18 +0900

Re: differences between Module and Class ?

From: "Pit Capitain" <pit@...>
Date: 2003-08-21 07:57:20 UTC
List: ruby-core #1443
On 21 Aug 2003 at 10:51, Mathieu Bouchard wrote:

> I'm trying to figure out the feasibility of
> merging the Module class with the Class class, with all the consequent
> changes, and with as much backward compatibility as possible.

> (...)

Mathieu, could you tell us what you are trying to achieve? I suppose 
you want to unify some core Ruby concepts, but I could be wrong or 
only grasp a part of your ideas.

Nonetheless, I find this very interesting and worthwhile, but doubt 
that such a change would ever be incorporated in the language. The 
distinction between classes and modules (not the namespace usage, but 
the mixins) seems to be too fundamental a concept in Ruby. So maybe a 
merge might only happen, if at all, in the interpreter.

Do you think it's possible in current Ruby to replace every 
class/module design into one which uses only modules for inheritance 
and classes only to create instances? Can you all think of something 
that wouldn't be possible in such a design?

Regards,
Pit

In This Thread