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

[REBOL] Odd behavior using copy/part?

From: webmaster::siliconspecies::com at: 4-Jan-2001 1:31

I have a function which reads the header of a binary file and extracts certain bits for analysis. It seems to work fine until home: copy/part header 1 Then it craps out. And the copy function which is Rebol native function returns as a variable instead of copy. You type Help Copy in Rebol/Command after this and it will tell you that copy is either worth 8 or no help for copy or something similar. Which I find distressing, the only way to restore the copy command in Rebol/Command is to close and restart. The solution I implemented was to kill at least half of the code below and only extract info that was absolutely necessary instead of the whole thing. code snippet: variable: head variable header: copy/part variable 4 header: enbase/base header 2 ;changes it to true binary which is like 11111111111110111001001100000000 sync: copy/part header 12 header: skip header 12 ID: copy/part header 1 header: skip header 1 layer: copy/part header 2 header: skip header 3 prot: copy/part header 1 header: skip header 1 bitrate: copy/part header 4 header: skip header 8 freq: copy/part header 2 header: skip header 2 pad: copy/part header 1 header: skip header 1 priv: copy/part header 1 header: skip header 1 mode: copy/part header 2 header: skip header 2 modext: copy/part header 2 header: skip header 2 copy: copy/part header 1 header: skip header 1 home: copy/part header 1 header: skip header 1 emphasis: copy/part header 1 Thanks, Jeff