Re: ISO extensible Eu - Holy Wars need not apply

new topic     » goto parent     » topic index » view thread      » older message » newer message

Lee West wrote:

> In this particular case, I have always wished David
> had designed the library to allow others to easily
> contribute code.

In my mind, this is a namespace issue, plain and simple. I made an attempt
to get around the problem in Llama by designing an OOP system, but the core
of the extensibility issue is namespaces.

I think it's well agreed that we need namespaces for Euphoria. The only
question is, will Robert give us something that will allow single or
multiple inheritance? Your guess is as good as mine. Something as simple as
a variation of "include" that makes the local declarations visible, such as:

   inherit win32lib.ew
   -- code here can now see local declarations in win32lib

would do nicely. If we go to multiple inheritance, then you need to use
prefixes to tell the compiler which library's routines to use:

   inherit win32lib.ew as win32
   inherit ftp.e as ftp

   -- call the create() routine in ftp, not win32lib
   ftp.create( ... )

I'd be plenty happy with single inheritance myself.

-- David Cuny

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu