[REBOL] How to best access a scripts header?
From: ingo:2b1 at: 9-Apr-2001 17:06
Hi all,
what is the best way to access the header of a script? Of
course, I can use, e.g. system/script/header/title , but
assume you have two scripts ...
; ---- first script ----
REBOL [
Title: "Script 1"
File: %script1.r
]
; do something
; ---- second script ----
REBOL [
Title: "Script 2"
File: %script2.r
]
do %script1.r
print system/script/header/title
; ---- end of scripts ----
You'll get "Script 1", because this script has been loaded
last ...
Kind regards,
Ingo