bloom-lang / bud

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

scope and aliasing #49

Closed palvaro closed 13 years ago

palvaro commented 13 years ago

currently if I want to use a module Foo, I say:

include Foo

and this brings into (global) scope the rules and relations defined by Foo. what if I want to use two Foos? what if I want to extend Foo by redeclaring one of its input interfaces and interposing additional logic? we really want something like:

import Foo as f1

this would kill both birds...

neilconway commented 13 years ago

I might take a crack at this, unless Pete beats me to it.

neilconway commented 13 years ago

Fixed by recent module import statement.