Jens Rieks <[EMAIL PROTECTED]> wrote:
> On Friday 01 October 2004 08:42, Leopold Toetsch wrote:
>> > sucks a lot less than making python programmers say
>> > "import Foo.ns.Bar.scalar.baz"
>>
>> And that's not possible because CPython, JPython, IronPython, ...
>> wouldn't execute it.
> Yes, but those Pythons will not execute such a program at all, because it
> depends on a forgin language's module. Or how should that work?

Oops. Severe lack of coffee on my side. But OTOH I can imagine that
finally standard modules are present in Parrot that do the right thing.
E.g. in Python

  import os

would import a Parrot module that wraps these functions to Parrot. So
basically, when you have:

  os.setsid()      # Python
  POSIX::setsid(); # Perl

these two functions would be the same, living in some Parrot lib and
aliased to the language's equivalent.

So the import or use syntax shouldn't be changed just to accomodate
Parrot's namespace internals.

> jens

leo

Reply via email to