World: r3wp
[RAMBO] The REBOL bug and enhancement database
older newer | first last |
Romano 10-Mar-2005 [266] | it is not a wish it is a bug :-) |
Gabriele 10-Mar-2005 [267] | romano, which one? |
Romano 10-Mar-2005 [268] | - 2147483648 |
Gabriele 10-Mar-2005 [269] | indeed, 3646 is a bug, not a wish. |
Geomol 10-Mar-2005 [270] | A work-around!? >> i: -2147483647 == -2147483647 >> i: i - 1 == -2147483648 >> type? i == integer! |
Anton 10-Mar-2005 [271x2] | Yeah, I know there's workarounds, but I don't wish to have to use them. |
Gabriele: mmm, it is not stated quite the same. Romano's bug report #3646 asks for an overflow error (and I agree), but I want that when -2147483648 is loaded it should remain an integer! (It looks that Romano agrees with me.) Could that be added to the report ? | |
Gabriele 11-Mar-2005 [273] | hmm, yes, and there's #3520 which is about the same issue but not exactly worded as you wish. well, let's just make a new ticket and reference #3646 and #3520 in it. |
Romano 11-Mar-2005 [274] | My bug about -2147483648 is more old, is 3099 and is set as "Done" also if it is not done or it is done in the wrong way. |
Gabriele 11-Mar-2005 [275] | that a bug from the rebol-view altme tracker... i guess it was misunderstood. |
Anton 13-Mar-2005 [276] | Yes, I think #3099 was misunderstood, and this is the report that agrees most with me. It should be changed from "Done" to "Issue"/"Bug". |
Henrik 14-Mar-2005 [277] | who's car will I have to wash to get a RAMBO account? :-) |
Anton 14-Mar-2005 [278] | Do you want to submit a bug ? I'm pretty sure you don't need an account to do that (although it *looks* like you do). |
Henrik 14-Mar-2005 [279] | couple of obvious and annoying ones in makedoc2.r. ahh... seems like I can |
Anton 14-Mar-2005 [280] | You should usually search the rambo database to see if it hasn't been submitted already, and also check here before submitting, unless you are really pressed for time. |
Vincent 17-Mar-2005 [281] | I have problems with draw block in betas > 1.2.48: draw [pen none box 0x0 100x20 pen 0.0.0 text 2x2 "hi!" pen none box 0x21 100x40] second box border isn't transparent. It seems that drawing text with a non-invisible pen override any future invisible pen color setting. |
DideC 17-Mar-2005 [282] | Version > 1.2.48 does it mean "version upper than 1.2.48" ? It mean AGG inside so!! It's alpha, with many bugs arround. Try with a tupple of 4 value with max alpha value : pen 0.0.0.255 |
Vincent 17-Mar-2005 [283x2] | yes, upper than |
4 values color tupples don't works with official version | |
DideC 17-Mar-2005 [285] | Yes, but should work with AGG ones |
Vincent 17-Mar-2005 [286] | I use a workaround, putting all text display last in draw block |
DideC 17-Mar-2005 [287] | Q: what result does "pen none" give ? Transparent color, or no drawing ! |
Vincent 17-Mar-2005 [288] | it does draw, with black color in this case |
DideC 17-Mar-2005 [289] | For the first box or the second ? |
Vincent 17-Mar-2005 [290] | only the second |
DideC 17-Mar-2005 [291] | And the first ? |
Vincent 17-Mar-2005 [292x5] | the first is transparent 'text seem to affect pen selection: if I change 'text location, it's after 'text this problem happens |
('text location in draw block) | |
I tried to make a face with text and invisible boxes | |
the boxes colors are changed at runtime | |
it's a draw version of 'textlist | |
Anton 18-Mar-2005 [297x6] | s1: make struct! [] none s2: make struct! [] none same? s1 s2 ;== none ; (expected false) same? s1 s1 ;== none ; (expected true) blk: reduce [s1] ;== [make struct! [] []] find blk s2 ;== [make struct! [] []] ; (expected none) equal? s1 s2 ;== none ; (are struct! comparable like string! (expect true) or incomparable like object! (expect false) ?) |
Doesn't look like this bug is in rambo database. I should submit a bug. Any complaints? | |
Here's a more difficult one - FORM. I always guessed that PRINT uses FORM internally: | |
print ["" "hello"] ;hello print [" " "hello"] ; hello ; <--- 2 leading spaces form ["" "hello"] ;== "hello" form [" " "hello"] ;== " hello" ; <--- 2 leading spaces | |
Isn't that kind of inconsistant ? You have a choice of 0 or 2+. How do you get just 1 leading space ? Furthermore: | |
prin ["" "hello" ""] print "." ;hello . ; <---- 1 traling space form ["" "hello" ""] ;== "hello " ; <--- 1 trailing space | |
Izkata 18-Mar-2005 [303] | print rejoin [" " "whatever" " "] ; ;) |
Anton 18-Mar-2005 [304x2] | The inconsistency is also between empty strings which are in first position or a later position in the block. |
Yes, Izkata, I am well aware of that workaround. | |
Izkata 18-Mar-2005 [306] | No real argument from me, though, since I don't know and have never used 'form or simply printed blocks |
Anton 18-Mar-2005 [307x2] | However, I keep bumping into this problem and so it wastes my time continually. I also imagine it's a small confusion for beginners. |
So, I would like: print ["" "hello"] ; hello ; <---- 1 leading space form ["" "hello"] ;== " hello" ; <--- 1 leading space form ["" "hello" ""] ;== " hello " ; <--- 1 leading and 1 trailing space And similar results for PRINT. Anyone have any objections ? | |
Pekr 18-Mar-2005 [309] | Anton - how can you produce space without actually providing a space? ;-) "" is empty string. Even 'empty? tells you so ... it can't add space by some magis, just only because it is used in a block or form ... |
Anton 18-Mar-2005 [310x3] | FORM puts a space between all items in the block when it is joining them together, even items which are empty strings - *except* if it is the first item. |
You should read my examples more carefully. | |
Well now, that is not always true either ! form [{} {} {} {} {}] ; a whole bunch of empty strings ;== "" ; <--- empty string form [{} {a} {} {} {}] ; one character added ;== "a " ; <--- three trailing spaces | |
Izkata 18-Mar-2005 [313] | Perhaps form is just waiting until there's a value before it adds stuff? >> form [{} {} {} {Hi} {} {}] == "Hi " ;2 spaces, and only after string w/value found >> form [{} {} {} {Hi} {} {} {Hi} {}] == "Hi Hi " ;2 spaces and 1 space.. But yes, there probably ought to be a space in fron like you said before. If the behavoir I think is happening, then 'trim should just be used, not letting it be automatic |
Anton 18-Mar-2005 [314] | I am guessing the logic behind FORM is that it changes mode at the first non-empty string. |
Izkata 18-Mar-2005 [315] | Basically what I tried to say but couldn't type correctly ;) |
older newer | first last |