REBOL3 tracker
  0.9.12 beta
Ticket #0001682 User: anonymous

Project:



rss
TypeWish Statustested Date20-Oct-2010 11:44
Versionalpha 99 CategoryMezzanine Submitted byBrianH
PlatformAll Severityminor Priorityhigh

Summary MODULE function unbinding, and /mixin option
Description Two features are missing to make inline modules act like script modules:
- Having undefined words be unbound, for safety and debugging.
- Incorporating the words exported by private modules (mixins).

These are both critical, and both can be done by the code below.
Example code
module: func [
	"Creates a module. Spec and body modified."
	spec [block!] "The header block of the module"
	body [block!] "The body block of the module"
	/mixin "Mix in words from other modules"
	words [object!] "Words collected into an object"
][
	make module! unbind/deep reduce pick [[spec body] [spec body words]] not mixin
]

Assigned ton/a Fixed inalpha 108 Last Update20-Oct-2010 11:44


Comments

Date User Field Action Change
20-Oct-2010 11:44 BrianH Description Modified -
20-Oct-2010 11:44 BrianH Code Modified -
20-Oct-2010 11:44 BrianH Fixedin Modified => alpha 108
20-Oct-2010 11:44 BrianH Status Modified submitted => tested
20-Oct-2010 11:44 BrianH Ticket Added -