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

[REBOL] Re: do %image.png

From: ryanc:iesco-dms at: 14-Nov-2001 14:29

Hey Jason, I was mistaken in that my last example only worked well in a "prefaced" situation. What you really want is this: garblyjunkbinaryfile [ REBOL [] confirm "This is a test." ] garblyjunkbinaryfile There is a problem I discovered, a bug probably. Seems that the null characters in the png file are disrupting REBOL's ability to trigger. Without nulls present, the embedding works fine. Example:
>> write/binary %test "^@^/[ rebol [] confirm {Works?} ]" >> do %test
** Syntax Error: Script is missing a REBOL header ** Where: do-boot ** Near: do %test
>> write/binary %test " ^/[ rebol [] confirm {Works?} ]" >> do %test
== true
I sent a feedback, hopefully they get around to fixing it soon, --Ryan Jason Cunliffe wrote:
> "Ryan Cole" <[ryanc--iesco-dms--com]> wrote > > Should be even easier than that. Just insert something like this into > it... > > > > REBOL[] > > confirm "This is a test." > > halt > > > > Just make sure you have the code enveloped in linefeeds. REBOL was > designed to > > do this already. > > Hi Ryyan > I don't quite understand you. > ..what "this" REBOL was design to do ? > > How will wrapping my embedded script in linefeeds help? > How will I know I am at the end of my script and at some space in the middle > of it? > > thanks > - Jason > > -- > To unsubscribe from this list, please send an email to > [rebol-request--rebol--com] with "unsubscribe" in the > subject, without the quotes.
-- Ryan Cole Programmer Analyst 707-468-5400 The contradiction so puzzling to the ordinary way of thinking comes from the fact that we have to use language to communicate our inner experience which in its very nature transcends lingistics. -D.T. Suzuki