World: r3wp
[RAMBO] The REBOL bug and enhancement database
older newer | first last |
Graham 27-Nov-2006 [2284x2] | How does Carl decide what goes native and what does? |
Why switch, and not case ? | |
Pekr 27-Nov-2006 [2286] | append got native too :-) well, imo if you use something often, in mezzanine level, then it could be brought to native level? Imo it could be even profilet, to know if the speed gain is there or not, no? |
Rebolek 27-Nov-2006 [2287] | I don't think it's very wise to implement 'switch native in 2.7 when it can broke old code. Save it for 3.0, why not, but why breaking the compatibility, when it's not necesary? |
Henrik 27-Nov-2006 [2288] | perhaps it's a sneaky way of testing R3 code? :-) |
Graham 27-Nov-2006 [2289] | you can always redefine it back again. |
Pekr 27-Nov-2006 [2290x2] | I am with Rebolek here - 2.x family should stay as separate branch, usable in what it offers, no new experiments. |
but maybe compatibility issue here is not a problem? | |
Rebolek 27-Nov-2006 [2292] | Pekr: older switch evaluates values , newer does not >>b: [print "!"] switch 1 [1 b] prints "!" in older versions, returns none! in 2.7.2 |
Pekr 27-Nov-2006 [2293] | that is rather big change in behavior, no? But it was probably discussed here enough, so that 2.7.2 is kind of consensus of developers opinion? |
Rebolek 27-Nov-2006 [2294] | yes it was discussed, |
Henrik 27-Nov-2006 [2295x3] | anton, should we rambo it as it is? |
anton, (about your patch) | |
anton, I tried TOGs, BTNs and overlapping TOGs and they all work without this problem now. looks OK to me. | |
[unknown: 5] 27-Nov-2006 [2298x2] | Rebolek you make a good point about the switch. Maybe we should modify it so that it can find block! or type? block! - of course it is native right now so I have no idea what that means for the code. |
Which I don't know if that is very desirable either as some may want just the block returned and not evaluate as it would now if in your example the b were in build in the case such as [1 [b]] But in any event you can get the effect you want with the current switch by doing this: do switch 1 [1 [b]] | |
Anton 27-Nov-2006 [2300] | Henrik, no, I'll clean it up first. I just thought you might have needed it for something. It's in my editor so I ought not to forget about it. :) |
Henrik 27-Nov-2006 [2301] | anton, ok. it would just be very nice to get this fixed properly. I've had complaints over this a few times now. |
Anton 27-Nov-2006 [2302] | Ok, so it's not just a frivolous claim :) Don't worry, I won't forget. |
Maxim 27-Nov-2006 [2303] | WTF new switch doesn' evaluate? that was the point of the previous switch. none of my last 5 years of code will now work. |
Anton 27-Nov-2006 [2304] | Example ? |
Maxim 27-Nov-2006 [2305] | what's the point of changing switch in 2.7? |
Anton 27-Nov-2006 [2306] | To make it better ? |
Maxim 27-Nov-2006 [2307] | at what cost? |
Anton 27-Nov-2006 [2308] | This works for me: >> switch 1 [1 [print "hello"]] hello |
Maxim 27-Nov-2006 [2309x3] | give me a minute... I'll do a real test. |
ok I just looked at the above example and yes it makes sense now... I thought it didn't evaluate the content of the block. | |
so since it does evaluate, yes my code seems to work pretty well under 2.7 GLayout presents no artifacts, and liquid will run a little faster with newer switch. | |
Gabriele 27-Nov-2006 [2312x2] | Graham, CASE has always been a native. SWITCH needs to be native for the BREAK problem I mentioned (otherwise /ALL makes the function rather inefficient) |
Rebolek: if it really breaks important code, we will revert it back. The request for changes to SWITCH was in RAMBO. | |
Maxim 27-Nov-2006 [2314x2] | why did changing the executable rebol.exe to v2.7 force me to go throught setup of user again? |
especially since it didn't even change the content of the user.r file... but now it accepts it? | |
Anton 27-Nov-2006 [2316] | Henrik, I published the TOG bug to RAMBO. (It didn't really need much cleaning. I just checked that the TOG feel was used only by TOG.) |
Henrik 28-Nov-2006 [2317] | wonderful! thanks :-) |
Rebolek 28-Nov-2006 [2318] | Gabriele: OK, that's reasonable |
sqlab 1-Dec-2006 [2319x2] | I have a slightly modified help, that does not evaluate functions in objects and ports and that also dumps ports like objects. >> a: open http://www.rebol.com connecting to: www.rebol.com >> help a A is a port of value: scheme word! HTTP host string! "www.rebol.com" port-id integer! 80 user none! none pass none! none target none! none path none! none proxy object! [host port-id user pass type bypass] access none! none allow none! none buffer-size none! none limit none! none handler object! [port-flags open-check close-check write-check ini... status word! file size integer! 0 date date! 6-Nov-2006/21:26:44 url string! "http://www.rebol.com/" sub-port port! make port! [ scheme: 'tcp host: "www.rebol.com" po... locals object! [list headers querying] state object! [flags misc tail num with custom index func fpos i... timeout integer! 30 local-ip none! none local-service none! none remote-service none! none last-remote-service none! none direction none! none key none! none strength none! none algorithm none! none block-chaining none! none init-vector none! none padding none! none async-modes none! none remote-ip none! none local-port none! none remote-port none! none backlog none! none device none! none speed none! none data-bits none! none parity none! none stop-bits none! none rts-cts logic! true user-data none! none awake none! none Is there interest in including in the new release? |
help/secure a/handler/set-modes there is a function inside an object or port USAGE: A/HANDLER/SET-MODES port modes DESCRIPTION: (undocumented) A/HANDLER/SET-MODES is a function value. ARGUMENTS: port -- An open port spec (Type: any) modes -- A mode block (Type: any) | |
Maxim 1-Dec-2006 [2321] | yes... please send this to Carl |
Joe 1-Dec-2006 [2322] | very cool! |
sqlab 4-Dec-2006 [2323] | I put it into Rambo and into the library at rebol.org, as Carl promised it already once to include it in one of the former realeses. |
sqlab 5-Dec-2006 [2324] | I fixed some problems with blocks |
Anton 7-Dec-2006 [2325x3] | scaling info.gif (which has an alpha channel) gives funky red and yellow stripes when specifying 2 or 4 points (but not 1 point). This bug seems to have been introduced in View 1.3.2 and is still present in View 2.7.4 window: layout [b: box sky effect [draw [image info.gif 0x0 49x48]] mag: box 600x600] mag/image: to-image b view window |
It doesn't appear to be in the bug database. | |
I've been investigating the bug above with this script: do read http://anton.wildit.net.au/rebol/view/draw/agg/image-fit.r | |
Henrik 7-Dec-2006 [2328x3] | anton, testing both on XP and OSX. the bug does not appear on OSX, though colors are odd there due to a known bug. |
another known bug, that is | |
it could be that the odd colors are simply hiding your bug, though. :-) | |
Anton 7-Dec-2006 [2331] | :) |
Henrik 7-Dec-2006 [2332] | http://rebol.hmkdesign.dk/imagebug.png |
Anton 7-Dec-2006 [2333] | It looks like it also has the alpha channel problem. |
older newer | first last |