Sean O'Rourke:
# >    * make parrotclass handle "invoke"
# >      this strikes me as the most efficient,
# >      but I'm not really confident with C
# >      so I'm hesitant to try it
# 
# This seems to me like the way to go, except you might
# subclass parrotclass to pythonclass (since this lack-
# of-"new" seems to be the "Pythonic way").  The C should
# pretty much just turn around and call pmc_new, then
# return the original return address that was passed in.

I don't think this is the answer, because...

        use PythonClass;
        $pyobj=PythonClass.new();       #Doesn't work--need to somehow
invoke 
                                                # the class

        #Sorry, I'm not very familiar with Python...
        import PerlClass
        plobj=PerlClass()               #Doesn't work--need .new

I think this is a syntactic issue, not a semantic issue; as such, it
needs to be dealt with at the syntactic (bytecode) level, not the
semantic (PMC) level.

--Brent Dax <[EMAIL PROTECTED]>
Perl and Parrot hacker
 
"Yeah, and my underwear is flame-retardant--that doesn't mean I'm gonna
set myself on fire to prove it."

Reply via email to