comment[
    save/load with "{" in long strings broken!
    Long Strings looks like
    {{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx}
    when molded. No escaping of inner "{"!
    found bug when trying {a ^{ in a string} . "^}" exits, "^{" does not!
    This comments cannot be embedded..
]
comment [ --- TEST GIVES:
"save:"
["hello" "world"]
"reloaded"
filedump: "hello" "world"
["hello" "world"]
"save:"
[{{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx} 
"world"]
"reloaded"
filedump: 
{{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx} "world"
** Syntax Error: Invalid string -- 
{{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx} "world".
** Where: (line 1) 
{{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx} "world"
]

[rebol[ "THE SOURCE" ]
dump: func[blk][probe blk             comment {probe first blk probe second 
blk}]
test: func["saves and loads back the blk" blk ][
    probe "save:"
    dump blk
    save %test.txt blk
    probe "reloaded"
    print ["filedump:" read %test.txt]
    blk: load %test.txt
    dump blk
]
test [ "hello" "world" ]
test ["{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" 
"world"]
]



 
 

Reply via email to