World: r3wp
[!REBOL3-OLD1]
older newer | first last |
Robert 14-Jan-2010 [20837] | Editors choke on this as well because these are to stupid to skip braces in strings. So the balance function is mostly not correctly working. |
Graham 14-Jan-2010 [20838x2] | Robert I have this issue all the time ... |
The easiest way for me to fix it is to use a pretty code tool to indent until I see where I'm no longer balanced | |
Robert 14-Jan-2010 [20840] | Well, but I really don't want to scroll through a 1MB data file getting pretty printed... this will be thousands of line long. |
Graham 14-Jan-2010 [20841x4] | hehe ... |
ftp://ftp.compkarori.com/pub/clean.exe | |
I just paste functions into the text area and run clean script on it ... | |
because I generally know which function I've been working on ... | |
Henrik 14-Jan-2010 [20845] | Same question as I asked in the Core group. It would be nicer with a REBOL function, so we could build a REBOL based diagnostic tool around it. Very handy to build into programs, so they can examine damaged datafiles themselves. |
Graham 14-Jan-2010 [20846x2] | If you've got a 1mb function .. you're in bigger trouble that this tool can help you with .... |
clean.exe is just a text area that has clean-script running on a button. | |
Henrik 14-Jan-2010 [20848x2] | Usually this is not functions, but data files. Yesterday, we encountered a datafile with an illegal char in it. Took an hour to find the problem. |
and it was a data file that had been MOLD/ALL/FLAT from REBOL and then attempted to LOAD/ALL again, which failed. | |
BrianH 14-Jan-2010 [20850] | Be sure to report the problem, and which char in which type caused the problem. In theory, MOLD/all generating an illegal char or non-loadable syntax at any point is a bug, and should be reported. |
PeterWood 14-Jan-2010 [20851] | Robert & Graham: JEdit does a good job of matching [, { & ( and even auotmatically indents and de-indents them for you. |
Robert 14-Jan-2010 [20852] | I have found out that JEditX (a cocoa editor not related to Jedit) has a very good brace matcher as well. But anyway, an in build one would be nice. |
Sunanda 14-Jan-2010 [20853] | The _Official Guide_ (huge paperback) had a bracket checker as a worked example of using REBOL code as data. If anyone has easy access to a copy, perhaps they could dig it out. |
Robert 14-Jan-2010 [20854] | I have Rebol 1.0 manual. Do you mean this? |
Sunanda 14-Jan-2010 [20855] | No, the official guide as listed on this page (the link by the book itself no loner works): http://www.rebol.com/books.htmlhttp://www.rebol.com/books.html |
Gregg 14-Jan-2010 [20856] | I have it here, and found what I think Sunanda is referring to. If someone is really interested I'll post it. |
Maxim 14-Jan-2010 [20857] | uedit has no brace matching issues. it works very well with REBOL and its fast enough to match braces on very large parts of code in real time. |
Graham 14-Jan-2010 [20858x2] | notepad++ does bracket matching ... |
So Carl, have you come back with some proposals on the network base context ? | |
Carl 14-Jan-2010 [20860x2] | Sunanda: with the new site, please tell us what to add. We are very interested, and it is easy now, to keep things updated. |
Graham: make it a module. | |
Graham 14-Jan-2010 [20862x2] | Carl, have you seen these new plug computers? Running Marvel ARM processors ... |
They're going to make great REBOL appliances ! | |
Carl 14-Jan-2010 [20864] | Robert mentioned it. Let's do it! |
Graham 14-Jan-2010 [20865] | So, R2 first ... 2.7.7 to ARM, and then R3 |
Carl 14-Jan-2010 [20866] | Probably not. R3 first... and if that works, then R2. R3 is built for portability. R2 can be problematic. |
Graham 14-Jan-2010 [20867x3] | whatever works .. |
though I do want to run Cheyenne on them ! | |
Another entry for rebolweek ... RT is porting R3 to ARM | |
Cyphre 15-Jan-2010 [20870] | I have one R3 question...is this bug or was it changed intentionaly in R3 (don't remember right now): >> a: [[1 + 2]] == [[1 + 2]] this is OK: >> do a/1 == 3 but this doesn't evaluate in R3: >> do to-path [a 1] == a/1 >> |
Steeve 15-Jan-2010 [20871x3] | I would say: intentionaly >> do get to-path [a 1] |
to-path return a quoted path | |
seems... | |
Cyphre 15-Jan-2010 [20874] | that is possible...I'd like to know the reason why it was changed as it is not symetric word! now... in R2: >> a: [[1 + 2]] == [[1 + 2]] >> b: [a a/1] == [a a/1] >> do first b == [1 + 2] >> do second b == [1 + 2] >> b: ['a 'a/1] == ['a 'a/1] >> do first b == 'a >> do second b == 'a/1 >> but in R3: >> a: [[1 + 2]] == [[1 + 2]] >> b: [a a/1] == [a a/1] >> do first b == [[1 + 2]] >> do second b == a/1 >> b: ['a 'a/1] == ['a 'a/1] >> do first b == a >> do second b == 'a/1 >> I think the R2 behaviour is more cleaner but maybe I'm missing something? |
Steeve 15-Jan-2010 [20875x4] | Agree now, disturbing disturbing... |
a: [[1 + 2] b: [a/1] >> do do do do do do b/1 == a/1 really disturbing... | |
Can't figure if it's good or bad. | |
i pass... | |
Rebolek 15-Jan-2010 [20879] | I think it's bad. |
Steeve 15-Jan-2010 [20880] | But i'm afraid there are some drawbacks to reverse it to the R2 behavior. |
Geomol 15-Jan-2010 [20881] | Notice there is bug involved: >> do ['a] == a >> do do ['a] >> a ** Script error: a has no value One bug is, that do do ['a] doesn't raise an error, when a has no value. |
Cyphre 15-Jan-2010 [20882] | Yes, there is definitely something wrong in this area with R3...so now it doesn't look like a intentional change. |
Geomol 15-Jan-2010 [20883] | Simplest example, I think: >> do 'a >> |
Henrik 15-Jan-2010 [20884] | wow, looks quite broken |
Graham 16-Jan-2010 [20885x2] | How do you access the arguments when passed in a command line? r3apha myscript.r argument-list ? |
probe system/options/args probe system/script/args says system object is protected | |
older newer | first last |