Re: Using Ruby Objects with Parrot

2004-03-22 Thread Nick Ing-Simmons
Mark Sparshatt [EMAIL PROTECTED] writes: I'm not 100% certain about the details but I think this is how it works. In languages like C++ objects and classes are completely seperate. classes form an inheritance heirachy and objects are instances of a particular class. However in some languages (I

Re: Using Ruby Objects with Parrot

2004-03-22 Thread Piers Cawley
Nick Ing-Simmons [EMAIL PROTECTED] writes: Mark Sparshatt [EMAIL PROTECTED] writes: I'm not 100% certain about the details but I think this is how it works. In languages like C++ objects and classes are completely seperate. classes form an inheritance heirachy and objects are instances of a

Re: Using Ruby Objects with Parrot

2004-03-22 Thread Larry Wall
On Tue, Mar 23, 2004 at 12:53:57AM +, Piers Cawley wrote: : Personally, I've always wished that Perl5 *had* done that. I've toyed : with the idea of blessing Stashes, but never got around to actually : implementing anything. Well, hey, we had to leave something to fix in Perl 6. What? Oh,

Re: Using Ruby Objects with Parrot

2004-03-13 Thread Mark Sparshatt
I promise I will learn hwo to use my email program. This should have gone to the mailing list :-/ Dan Sugalski wrote: At 10:22 PM + 3/12/04, Mark Sparshatt wrote: Hi, I've been reading PDD15. It seems that if the object foo is an instance of the class Foo then foo is a ParrotObject pmc

Re: Using Ruby Objects with Parrot

2004-03-13 Thread Mark Sparshatt
This is another message that should have gone to the list :-[ Karl Brodowsky wrote: Mark Sparshatt wrote: From the description in PDD15 I'm not sure how to hand languages where a class is also an object. Where Foo is an instance of Foo' which is an instance of Class. Could this be handled

Re: Using Ruby Objects with Parrot

2004-03-13 Thread Karl Brodowsky
Mark Sparshatt wrote: The problem is what happens when some Python code tries to call a class method on a Ruby object? if Python doesn't know about the hidden reference within Foo it won't be able to find Foo' in order to call the method. The issue you are addressing is finding the applicable

Re: Using Ruby Objects with Parrot

2004-03-13 Thread Mark Sparshatt
Karl Brodowsky wrote: Mark Sparshatt wrote: The problem is what happens when some Python code tries to call a class method on a Ruby object? if Python doesn't know about the hidden reference within Foo it won't be able to find Foo' in order to call the method. The issue you are addressing is

Re: Using Ruby Objects with Parrot

2004-03-13 Thread Brent \Dax\ Royal-Gordon
Mark Sparshatt wrote: The problem is what happens when some Python code tries to call a class method on a Ruby object? if Python doesn't know about the hidden reference within Foo it won't be able to find Foo' in order to call the method. If I understand correctly, the Ruby object, as represented

Re: Using Ruby Objects with Parrot

2004-03-13 Thread Mark Sparshatt
Brent Dax Royal-Gordon wrote: Mark Sparshatt wrote: The problem is what happens when some Python code tries to call a class method on a Ruby object? if Python doesn't know about the hidden reference within Foo it won't be able to find Foo' in order to call the method. If I understand

Using Ruby Objects with Parrot

2004-03-12 Thread Mark Sparshatt
Hi, I've been reading PDD15. It seems that if the object foo is an instance of the class Foo then foo is a ParrotObject pmc and Foo is a ParrotClass pmc. From the description in PDD15 I'm not sure how to hand languages where a class is also an object. Where Foo is an instance of Foo' which is

Re: Using Ruby Objects with Parrot

2004-03-12 Thread Dan Sugalski
At 10:22 PM + 3/12/04, Mark Sparshatt wrote: Hi, I've been reading PDD15. It seems that if the object foo is an instance of the class Foo then foo is a ParrotObject pmc and Foo is a ParrotClass pmc. From the description in PDD15 I'm not sure how to hand languages where a class is also an

Re: Using Ruby Objects with Parrot

2004-03-12 Thread Karl Brodowsky
Mark Sparshatt wrote: From the description in PDD15 I'm not sure how to hand languages where a class is also an object. Where Foo is an instance of Foo' which is an instance of Class. Could this be handled during compilation? The compiler could produce the classes Foo and Foo' and use