bloom-lang / bud

Prototype Bud runtime (Bloom Under Development)
http://bloom-lang.net
Other
854 stars 60 forks source link

Allow duplicate import binding names #258

Closed neilconway closed 12 years ago

neilconway commented 12 years ago

Rather than rejecting such programs, it would be more useful to effectively import both modules into the same namespace. This allows the two modules to interact, which could have unfortunate consequences, but we can't really do this in a well-structured way until we get module parameters anyway.

Per recent discussion on bloom-lang.

andreaimprovised commented 12 years ago

Any update on this issue? I'd like to know if this functionality will exist within the next day or two.

neilconway commented 12 years ago

Well, it isn't just a matter of removing the error check: we also need to merge the metadata for all the imported modules that have been bound to the same local name, and write a bunch of tests. Should be doable, but I probably won't get around to it until Friday. When do you need it by?

andreaimprovised commented 12 years ago

No rush; it's convenient but not critical. I can hard code what I need to get done in the mean time without doing these kinds of imports.