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
 



---------------------------------
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais !
Testez le nouveau Yahoo! Mail

-- 
To unsubscribe from this list, just send an email to
[EMAIL PROTECTED] with unsubscribe as the subject.

Reply via email to