Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Rebol header when 'loading a file

 [1/3] from: tim::johnsons-web::com at: 14-Aug-2005 16:01


Hi Rebolers: Let say I have a rebol file with a rebol header rebol[ file: %test.r ] ;; some values a: 1 b: 2 ;; EOF and I load it as:
>> B: context load %test.r
;; access values as members of 'B context
>> b/a
== 1
>> B/b
== 2 ;; how do I access the rebol header itself? ;; Somehow I get behind on current documentation. ;; Pointers to docs are greatly welcome! thanks tim -- Tim Johnson <[tim--johnsons-web--com]> http://www.alaska-internet-solutions.com

 [2/3] from: AJMartin:orcon at: 15-Aug-2005 12:09


--- IB MailSpace Ad http://www.instantbuzz.com/b/?4f36da92_15t ---- How to Catch a Cheating Lover: http://www.instantbuzz.com/b/?4f36da92 ---------- Advertise Here for Free - Ask Me How -----------
> Hi Rebolers: > Let say I have a rebol file with a rebol header
<<quoted lines omitted: 15>>
> ;; Somehow I get behind on current documentation. > ;; Pointers to docs are greatly welcome!
Hi, Tim. Try using a 'load like this:
>> x: load/header %test.r
== [make object! [ Title: "Untitled" Date: none Name: none Version: none File: %test.r ... ;;The script is loaded as a block.
>> b: context next x >> b/a
== 1
>> b/b
== 2 I hope that helps! Andrew Martin

 [3/3] from: tim::johnsons-web::com at: 14-Aug-2005 17:21


* A J Martin <[AJMartin--orcon--net--nz]> [050814 16:18]:
> > ;; how do I access the rebol header itself? > > ;; Somehow I get behind on current documentation.
<<quoted lines omitted: 16>>
> == 2 > I hope that helps!
It does. I forgot about /header thanks tj -- Tim Johnson <[tim--johnsons-web--com]> http://www.alaska-internet-solutions.com

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted