REBOL3 tracker
  0.9.12 beta
Ticket #0001680 User: anonymous

Project:



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

Summary IMPORT into user context by default, unless /no-user
Description IMPORT currently makes no assumptions about where you want to import stuff, and so isn't quite as practical for script users as one might hope. By default, it only imports into the runtime library. Only the processor of the Needs header does the actual direct importing to the user context.

It would be better for IMPORT to do the standard imports into the system and user contexts by default. The existing /only option would prevent all importing. A new /no-user option would just prevent importing to the user context; /only would imply also /no-user.

The code that handles the exports to the user context would be moved from the Needs processor to IMPORT itself.
Example code
>> import module [] [t: 1] t
== 1

Assigned ton/a Fixed inalpha 110 Last Update2-Nov-2010 06:50


Comments

Date User Field Action Change
2-Nov-2010 06:50 BrianH Status Modified built => tested
1-Nov-2010 19:44 BrianH Fixedin Modified alpha 109 => alpha 110
21-Oct-2010 01:56 carl Fixedin Modified => alpha 109
21-Oct-2010 01:56 carl Status Modified pending => built
20-Oct-2010 16:46 BrianH Description Modified -
20-Oct-2010 16:46 BrianH Code Modified -
20-Oct-2010 16:46 BrianH Status Modified submitted => pending
20-Oct-2010 11:25 BrianH Ticket Added -