World: r3wp
[Core] Discuss core issues
older newer | first last |
Robert 18-Jun-2006 [4911] | Cool... I had this idea with the comparators too but not to use pick and the level as the selector. Cool stuff! |
Anton 18-Jun-2006 [4912] | :) |
Rebolek 22-Jun-2006 [4913] | Has anybody noticed problems with files that have "%" in name? |
Anton 22-Jun-2006 [4914x3] | Yes, can't open them in WinXP. |
No, yes you can. | |
read %"Hi%there.txt" <-- this filename works | |
Rebolek 22-Jun-2006 [4917] | yes, but load mold %"Hi%there.txt" does not |
Anton 22-Jun-2006 [4918] | >> load mold "Hi%there.txt" == "Hi%there.txt" what version of rebol, what os ? |
Rebolek 22-Jun-2006 [4919] | 1.3.2 on WXP |
Anton 22-Jun-2006 [4920] | no, sorry, you're right. I missed the initial % |
Rebolek 22-Jun-2006 [4921] | I think % should be automatically translated to %25 (like space is translated to ) to prevent these problems |
Anton 22-Jun-2006 [4922] | It does not mold into a loadable string. --> RAMBO. |
Rebolek 22-Jun-2006 [4923] | OK, I'll post it |
Anton 22-Jun-2006 [4924] | Note also this bug! http://www.rebol.net/cgi-bin/rambo.r?id=3189& |
Rebolek 22-Jun-2006 [4925x2] | well, that's really strange. see this >> >> load mold to file! "[s-:-a]" ** Syntax Error: Invalid email -- %[s-:-a] ** Near: (line 1) %[s-:-a] >> load mold to file! "[aas-:-df]" == ª[s-:-df] |
everything in range from "aa@.." to "ff@.." produces the second result | |
Anton 22-Jun-2006 [4927] | Add this information with the link to #3189 to your report. They should insert it into the original bug report. |
Ladislav 23-Jun-2006 [4928] | these ways can be used to circumvent the filename character problems if needed: load {%"aaa%aa"} load "%aaa%25aa" |
Pekr 25-Jun-2006 [4929x3] | how to catch following error? error? try [to-date 29-Feb_2006] |
ok, putting date in a string helps ...trying to catch leap year ... | |
I don't like it - why rebol parser interrupts me so fast? | |
Gabriele 25-Jun-2006 [4932x2] | petr, in the above case (without the quotes), the error happens before rebol gets to evaluate the TRY. |
you need to put the LOAD or DO that are loading that code in a try block. | |
Pekr 26-Jun-2006 [4934x3] | it does not seem to work: error? try [load 29-Feb-2006] |
I would prefer 29-Feb-2006 error, as well as e.g. error? try [load 380.250.250] being a bit more relaxed in interpreter ... | |
how can I catch such syntax errors? | |
Graham 26-Jun-2006 [4937] | what is your problem? |
Ladislav 26-Jun-2006 [4938] | error? try [load "29-Feb-2006"] ; == true |
Pekr 26-Jun-2006 [4939x4] | the problems is uncatchable error |
I am not talking about string .... | |
I am not sure I can meet with such situation in real-life :-) I just got asked by Bobik. The thing was, that in sqlite date field there can be invalid date. Now I am not sure how is the conversion done, if via string, but if you simply type such invalid date in console, it can't be recovered, and that is my objection in general ... | |
shouldn't we be always able to recover from whatever error happens? | |
DideC 26-Jun-2006 [4943] | To be executed, a script is loaded in a whole. So each values is loaded/binded and your error appears at this time, not while the expression is evaluated. |
Pekr 26-Jun-2006 [4944] | do you mean that I can catch the error during load? but why loading value itself fails? |
Graham 26-Jun-2006 [4945] | what uncatchable error? |
Pekr 26-Jun-2006 [4946x2] | try to type in console 29-feb-2006 .... |
although it is invalid, I thought that by error? try [29-Feb-2006] I will be able to recover eventually, which is not the case ... | |
Graham 26-Jun-2006 [4948x4] | >> if error? try [ load form 29-feb-2006 ][print "date format error" ] ** Syntax Error: Invalid date -- 29-feb-2006 ** Near: (line 1) if error? try [ load form 29-feb-2006 ][print "date format error" ] >> |
>> if error? try [ load "29-feb-2006" ][print "date format error" ] date format error >> | |
Doesn't like the 29-Feb-2006 as a date string | |
date type! | |
Henrik 26-Jun-2006 [4952] | looks like a bug? |
Graham 26-Jun-2006 [4953] | Looks like it. |
Volker 26-Jun-2006 [4954x2] | Does not like 32-may-2006 too. Isn't this more a feature than a bug? |
error? try [29-Feb-2006] is "word! word! [what-is-this?]". Reol has no idea what to do with "error?" at that time. | |
Pekr 26-Jun-2006 [4956x2] | well, but Volker, anyway, we got to state, where we have non-recoverable interpreter state, don't we? |
I know the date is invalid, but .... the same goes for tupple, e.g. 380.250.250 | |
Volker 26-Jun-2006 [4958x2] | >> 380.250.250 ** Syntax Error: Invalid tuple -- 380.250.250 ** Near: (line 1) 380.250.250 |
you are not at interpreter state at that time. think of 'load finding an error at compile-time. | |
Pekr 26-Jun-2006 [4960] | I know, I just don't like the fact, console is not safe from such errors .. |
older newer | first last |