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

[REBOL] Re: [bug?] Problem with 'load

From: rebolview:yaho:o at: 28-Nov-2003 15:28

Thanks Brett for explanations. I think it is simpler for Sunanda to work with embedded script with the script function i give you than parsing for header and content information like script? do (script? is a native and we can't see the source). So we add [ at start and ] at end of temp.r example script: ===save next lines as temp.r=== A preamble: there is text before header, containing "bad things More text before rebol [print "gets printed if this is taken as the header"] rebol this isn't a header despite starting with the magic word [ rebol [print "gets printed if header is evaluated" file: %fff needs: [1.2.1 xxxx]] print "gets printed if script is executed" ] =====end of test script=====
>> probe script %temp.r
make object! [ header: [print "gets printed if header is evaluated" file: %fff needs: [1.2.1 xxxx]] content: [ print "gets printed if script is executed"] ] -yos