World: r3wp
[RAMBO] The REBOL bug and enhancement database
older newer | first last |
Gabriele 8-Feb-2007 [2702] | yes, i think it will work fine if you just open/with |
Graham 8-Feb-2007 [2703] | Someone at RT should really go thru the old bugs and make sure that they are all fixed |
Gabriele 8-Feb-2007 [2704x2] | that will eventually happen. |
that's why they are in rambo - they won't be forgotten. | |
Maxim 8-Feb-2007 [2706] | is forgetting them better than not fixing them? I wonder ;-) |
BrianH 8-Feb-2007 [2707] | I'm looking at the http protocol source, and I find no indication of any fix to the default line ending of ssl:// - do I have the right source? It is dated 5-Dec-2005... |
Graham 8-Feb-2007 [2708] | same as mine |
Gabriele 9-Feb-2007 [2709] | hmm, was that lost? |
Ladislav 11-Feb-2007 [2710] | my understanding is, that the usage of the /ONLY refinement is an error in cases like: a-string: "" insert/only a-string "ab" currently REBOL just ignores the refinement, what are your preferences? |
Henrik 11-Feb-2007 [2711] | what should /only do for strings? |
Ladislav 11-Feb-2007 [2712] | If you carefully read my post, then you may see that you asked the same question I did |
Henrik 11-Feb-2007 [2713] | ok, sorry, I understood it as if you had the answer and wanted to hear others first. :-) |
Ladislav 11-Feb-2007 [2714] | I just have my preferences, but don't know what the others prefer |
Volker 11-Feb-2007 [2715] | It should put a string in the position of one char :D Its an programmer-error. Do we need a runtime-check? |
Ladislav 11-Feb-2007 [2716] | I guess, that it is simpler to silently ignore the refinement from the interpreter designer POV |
Henrik 11-Feb-2007 [2717] | Ok, I guess, I'm completely misunderstanding the problem. Volker, what do you mean by putting a string in the position of one char? |
Ladislav 11-Feb-2007 [2718] | that is what insert/only a-string "ab" requests for, althought it cannot be done |
Henrik 11-Feb-2007 [2719] | ah, so it would replace the character at the position and then insert the string from there? |
Volker 11-Feb-2007 [2720] | Henrik, look at how it works with blocks ;) |
Ladislav 11-Feb-2007 [2721] | ...and how it is described in its doc string |
Henrik 11-Feb-2007 [2722] | I know how it works with blocks, but I can't see how this would work with strings? You can't make strings inside other strings, unless you mean {"string"} or "{string}". And it's AFAIK not possible to control when to use one or the other? |
Volker 11-Feb-2007 [2723x2] | Thats why i added the ":D" ;) Yes, its impossible. But theprogrammer said "do so" |
Maybe the wrong emoticon? | |
Henrik 11-Feb-2007 [2725] | Volker, I think I understood that, but I just fail to see the current behaviour with /only on strings as a problem, so I guess I have to vote for the current behaviour. :-) |
Volker 11-Feb-2007 [2726x2] | Strictly iusing it for strings is a bug. But not a problem. |
And ignoring silly refinements is done everywhere in natives. | |
Maxim 11-Feb-2007 [2728x2] | ladislav, many funcs are intended to support all of a given set of types (numbers, series, etc). we must not turn rebol into a "strict" language... the "looseness" in the case where some effects are irrelevent are not really bugs. |
as opposed to calculus which has a definite and single true output value. REBOL should give an error in those cases, cause then, the process of calculus is an error (like out of bounds, etc) | |
Ladislav 11-Feb-2007 [2730] | {the "looseness" in the case where some effects are irrelevent are not really bugs} - yes, I understand this POV and respect it. that is why I am not enforcing my POV in this case and prefer to ask you |
Maxim 11-Feb-2007 [2731] | I know its hard to put the line where loseness becomes a bug (like the few cases this kind of effect has been brought up before) |
Ladislav 11-Feb-2007 [2732x2] | my idea was more in the sense: {insert/only "" "ab"} is a most likely a programmer error. therefore if the interpreter causes the error, it helps the programmer find the bug in his code. If the interpreter silently ignores the problem, then the programmer may be unable to find out there is probably something wrong |
(so I saw it as a kind of debugging help) | |
Maxim 11-Feb-2007 [2734] | but that depends where the "" comes from... your human sense sees this as a bug, but an algorythm merging a set of series of abstract types would not... ;-) |
Ladislav 11-Feb-2007 [2735] | well, if that algorithm really *needs* the string to occupy just one "place" in another string, then it may contain a bug, which may be revealed by testing, but not by evaluating this suspicious code |
Maxim 11-Feb-2007 [2736x2] | (Ladislav is the one thinking this to be suspicious ;-) I have a merge func which could not care less, all it wants is to make sure that equal things get inserted equaly, string into string, blocks into blocks... so in that sense, the above is not suspicious at all. but if only reacted differently for string, then I'd have to add an ugly escape route for that case ;-) |
But if /ONLY reacted ... | |
Ladislav 11-Feb-2007 [2738x2] | but if you really want to do what you said, then you probably don't use the /only refinement, do you? |
(just curious) | |
Maxim 11-Feb-2007 [2740x3] | back later... off to lunch ! |
(well that was diner actually... but anyways ;-) | |
yes, cause I don't want merge to insert the content of the block which is being merged, I want it to merge the block itself... (if that is what is submitted) ex: [ 1 2 3 ] [["one"] ["two"] ["three"]] == [ 1 ["one"] 2 ["two"] 3 ["three"]] | |
Anton 11-Feb-2007 [2743] | I see both possible behaviours balanced close to equally, except that keeping the "loose" behaviour is already here and has the benefit of not needing any changes. |
Ladislav 12-Feb-2007 [2744] | this behaviour of tags differs from string behaviour: a: <0> b: make tag! 0 insert b a a == b ; == false do you like it? |
Maxim 12-Feb-2007 [2745] | hum good catch. internally tags can hold other types, but I think it should be converted to string... for consistencie's sake. |
Volker 12-Feb-2007 [2746x3] | >> a == <0> >> b == <<0>> |
>> insert b 1.000000 == <<0>> >> b == <1.0<0>> | |
Ok for me. datatype is translated to string, a tagto"<something>". and then inserted. | |
Anton 13-Feb-2007 [2749x2] | An issue raised by Joe in Core group 26-Nov-2006: launch {my-script.r param} Joe wanted param to be parsed out and appear in system/script/args, however, it looks like instead the whole string is converted to a file and rebol tries to DO it. |
Hmm.. there seem to be a few other LAUNCH issues in the Rambo database. I guess it's not as important as it used to be, now we have CALL. | |
BrianH 13-Feb-2007 [2751] | Did he try the /as-is refinement to launch? That should solve the problem. |
older newer | first last |