REBOL3 tracker
  0.9.12 beta
Ticket #0001699 User: anonymous

Project:



rss
TypeWish Statustested Date20-Oct-2010 22:45
Versionalpha 108 CategoryMezzanine Submitted byBrianH
PlatformAll Severityminor Priorityhigh

Summary Rename IMPORT /isolate and /only to /no-share and /no-lib
Description The main reason for this change is API consistency, but the new names lead to easier-to-understand option descriptions as well. This is part of an overall project to make the module system and the IMPORT function easier to use, and more useful.

The only semantic change would be that /only implied /no-user (see #1680), but /no-lib doesn't. This means that IMPORT /no-lib without /no-user will instead import the module to the user context as a private module (see #1692). This is potentially a very useful trick.
Example code
; New spec
import: funct [
	"Imports a module; locate, load, make, and setup its bindings."
	module [word! file! url! module! block!]
	/version ver [tuple!] "Module must be this version or greater"
	/check sum [binary!] "Match checksum (must be set in header)"
	/no-share "Force module to use its own non-shared global namespace"
	/no-lib "Don't export to the runtime library (lib)"
	/no-user "Don't export to the user context"
]

Assigned ton/a Fixed inalpha 109 Last Update21-Oct-2010 05:58


Comments

Date User Field Action Change
21-Oct-2010 05:58 BrianH Status Modified built => tested
21-Oct-2010 01:51 carl Status Modified pending => built
21-Oct-2010 01:50 carl Fixedin Modified => alpha 109
20-Oct-2010 22:45 BrianH Description Modified -
20-Oct-2010 22:45 BrianH Code Modified -
20-Oct-2010 22:45 BrianH Status Modified submitted => pending
20-Oct-2010 22:45 BrianH Ticket Added -