World: r3wp
[Core] Discuss core issues
older newer | first last |
Pavel 26-Nov-2008 [11313x2] | What is a difference between block, hash, list how to use them properly, what is an advantage and payof of each one? This is not properly described in documentation IMHO, exist some good resource of knowledges? |
Is an additional structures (for hash and list) accessible somehow, can be similar structures defined in clean rebol or native only? | |
Sunanda 26-Nov-2008 [11315] | A hash is a block optimsed for 'find A list is a block optimised for 'insert and 'append Hash is very likely to be replaced by something else in R3 A note from Gregg about using list: http://www.rebol.org/ml-display-thread.r?m=rmlQFPC |
Pavel 26-Nov-2008 [11316x2] | THX for info |
And the 2nd question? Anybody? | |
Graham 26-Nov-2008 [11318] | native |
Joe 26-Nov-2008 [11319] | gabriele, thanks |
Pavel 26-Nov-2008 [11320] | Hashes/Lists IE when saved to file all hidden informations are lost, when reloaded all the links/indices are built from zero? |
Graham 26-Nov-2008 [11321] | save/all |
Pavel 26-Nov-2008 [11322] | good to know, thanks |
BrianH 26-Nov-2008 [11323x2] | The list! type is likely to not be in R3 (unless added as a third-party UDT). |
Also, you can't use hash! or list! to store code - BIND won't work on them. | |
Pavel 27-Nov-2008 [11325] | thanks again |
Nicolas 29-Nov-2008 [11326x2] | disarm try [%] |
is there anyway to disarm this error? | |
Henrik 29-Nov-2008 [11328x2] | since the block is not loadable, not directly, no. |
your code will fail before it reaches the 'disarm function | |
Nicolas 29-Nov-2008 [11330] | is there anyway I can get the system to ignore this? or catch this somehow? |
Henrik 29-Nov-2008 [11331] | the question is: how does it arise? can it be avoided? |
Nicolas 29-Nov-2008 [11332x5] | I'd avoid it if I could. I have a gui that updates at every keystroke. |
files: read %/c/ l: layout [ origin 0 space 0x0 f: field 600 [call to-file t/data/1] t: text-list 600x400 data copy files [call to-file t/picked/1] ] append second get in ctx-text 'edit-text [ t/data: copy files blk: load f/text attempt [remove-each file t/data :blk] show t ] focus f view l | |
type in "suffix? file" | |
but type in " or % and there's an error | |
I can probably get around it with a hack | |
Henrik 29-Nov-2008 [11337x2] | ah, it's a user generated error. |
you can do that by attempting a load of a string and if it loads, then it works: a: "%" load a ;== error error? try [load a] ;== true | |
Nicolas 29-Nov-2008 [11339] | you're a genius. thank you. |
[unknown: 5] 29-Nov-2008 [11340] | open/lines/with is broken in 2.7.6? |
Henrik 29-Nov-2008 [11341] | what does it do? |
[unknown: 5] 29-Nov-2008 [11342x6] | it just reads lines as normal |
it doesn't break a line at the with argument | |
ahhh it works but not with certain strings. | |
doing some more tests | |
Yeah there is definately a problem. | |
And it has something to do with blocks | |
Henrik 29-Nov-2008 [11348] | ok, let's elaborate, so we can see if this is something that is in RAMBO. |
[unknown: 5] 29-Nov-2008 [11349] | I'm trying to create another instance of the problem that I can post that doesn't have the confidential data in it. |
Henrik 29-Nov-2008 [11350] | ok |
[unknown: 5] 29-Nov-2008 [11351x6] | ok I have the following data posted in a file: {1 ["paul" "tretter" 41]*EOR*2 ["darla" "jean" 45]*EOR*} |
Now write that to a file and try to open/lines/with %filename "*eor*" | |
maybe it is case sensitive - didn't check that. | |
thats what it is | |
damn I didn't know that. | |
we should update the docs on using /with that it is case sensitive - which is opposite to how REBOL usually is. | |
Anton 29-Nov-2008 [11357x2] | Post a bug report/feature request to update the OPEN docs on that. |
(If one on RAMBO is not there already.) | |
[unknown: 5] 30-Nov-2008 [11359] | I actually sent an email to feedback to request it. |
Henrik 30-Nov-2008 [11360] | put it on RAMBO. it is the safest place to catalog such bugs. |
[unknown: 5] 30-Nov-2008 [11361] | 4244 submitted |
[unknown: 5] 1-Dec-2008 [11362] | I need the functionality of open/direct/lines/with such that I can access the lines in reverse order. In otherwords I want to be able to access the last line and then the next to last line etc... in that order. |
older newer | first last |