REBOL3 tracker
  0.9.12 beta
Ticket #0001877 User: anonymous

Project:



rss
TypeWish Statuspending Date12-Apr-2011 22:36
Versionalpha 111 CategoryMezzanine Submitted byBrianH
PlatformAll Severityminor Prioritynormal

Summary Multi-module support in LOAD-MODULE
Description The sys/load-header function has the ability to load more than one script from the same file/binary one at a time. With the addition of a couple words, similar support could be added to sys/load-module. See the code for details. No changes would be needed to IMPORT.

There is no high-level wrapper around these functions to support multi-loading, but that is another issue, and a somewhat trivial and user-specific one at that. Extensions would not be supported for multi-modules.
Example code
; In sys/load-module, change this:
            set [hdr: code:] load-header/required data
; to this:
            set [hdr: code: end:] load-header/required data

; and change this (at the end of the function):
    reduce [name if module? mod [mod]]
; to this:
    reduce [name if module? mod [mod] end]

Assigned ton/a Fixed in- Last Update20-Jan-2013 06:41


Comments
(0003241)
BrianH
11-Sep-2012 02:50

Patch implemented here, even for extensions: https://github.com/BrianHawley/rebol-patches

Still no mezz wrapper added, but it's a lot easier now. Only the first module in an extension would be the extension module, the rest would be regular modules.
(0003279)
BrianH
18-Dec-2012 22:08

In a pull request, waiting for more people to test it before it's accepted. See here: https://github.com/BrianHawley/r3-bh/tree/length-embedded-script

Date User Field Action Change
20-Jan-2013 06:41 BrianH Status Modified waiting => pending
18-Dec-2012 22:08 BrianH Status Modified reviewed => waiting
18-Dec-2012 22:08 BrianH Comment : 0003279 Added -
14-Dec-2012 08:23 BrianH Status Modified submitted => reviewed
11-Sep-2012 02:55 BrianH Comment : 0003241 Modified -
11-Sep-2012 02:50 BrianH Comment : 0003241 Added -
10-Oct-2011 02:57 BrianH Description Modified -
10-Oct-2011 02:57 BrianH Code Modified -
12-Apr-2011 22:36 BrianH Ticket Added -