Thanks Simon

I haven't used Perl since its pre-inhertance days, so I was unaware it
supported multiple inheritance.

Most languages I'm familar with that have garbage collection don't have
true stack variables. For example, the code....

void f()
{
     int x = 0;
     ...
}

....creates x on the stack in C++ (which is not garbage collected), but
creates it on the heap as a garbage collected object in Java. This has
ramifications not only in how programmers write their code, but in how
language designers design their languages.

>From what I've seen, supporting both garbage collection and true stack
variables is a difficult task.

Dave



                                                                                       
                            
                    Simon Cozens                                                       
                            
                    <simon@netthin       To:     [EMAIL PROTECTED]                
                            
                    k.co.uk>             cc:     [EMAIL PROTECTED]              
                            
                                         Subject:     Re: How Powerful Is Parrot? (A 
Few More Questions)           
                    01/25/02 10:46                                                     
                            
                    AM                                                                 
                            
                                                                                       
                            
                                                                                       
                            




On Fri, Jan 25, 2002 at 10:18:56AM -0500, [EMAIL PROTECTED] wrote:
> 1) Does Parrot support multiple inheritance?
> 2) Does Parrot support stack variables or is everything allocated on the
> heap?

There's an easy way to answer these questions for yourself.
"Does Parrot support X?" == "Does any language which we hope to run
on Parrot support X?"

Perl has multiple inheritance. It would be a shame if the interpreter we
wrote to run Perl on didn't have multiple inheritance.
Perl, and many other languages, have stack variables. Parrot has to support
them.

--
You are in a maze of little twisting passages, all different.



Reply via email to