Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

rebocalc bugs with 1.2.46.3.1

 [1/3] from: alain::goye::free::fr at: 4-Nov-2004 17:00


rebocalc.r (version: http://www.reboltech.com/library/scripts/rebocalc.r ) bugs with REBOL/View 1.2.46.3.1 6-Apr-2004 Core 2.6.0 : all horizontal headings are piled up at the same (wrong) offset. A workaround is to add : set in last pane 'offset xy after (line 26): append pane make label [offset: xy text: char] But the bug may be worth signalling ? Alain.

 [2/3] from: SunandaDH:aol at: 4-Nov-2004 11:31


Alain:
> But the bug may be worth signalling ?
Absolutely. There are two issues here: 1. how to contact the owner of a script at REBOL.org That's slightly tricky, as most owners have not added a contact form to their personal page. Once they have, it's simple. So, if anyone hasn't, please do!! 2. How to report behaviour changes in the latest REBOL alphas / betas This is probably more important in this case -- you may have discovered a bug in the latest pre-release versions, then the place to report it is in RAMBO: http://www.rebol.net/cgi-bin/rambo.r Cite the script that demonstrates the problem, so RT can decide to fix the problem in REBOL, or document the behaviour change. Sunanda.

 [3/3] from: antonr::lexicon::net at: 14-Nov-2004 19:58


View versions <= 1.2.25 the headings seem fine, but View versions >= 1.2.26 show this bug. I investigated by opening each rebol version, doing the following lines of code, then pasting into a text editor so I can make easy comparisons: layout [text with [write clipboard:// join {; } [system/version newline mold init]]] quit write clipboard:// join {; } [system/version newline mold system/view/vid/vid-styles/text] quit If you search for "xy" you can see that the attribute xy has been added to the TEXT style in Rebol/View 1.2.26 This is a bug which happens inevitably when user code extends the face definition with its own attributes (ie. 'xy) The "official", safe way is to put all extra user state data into face/user-data, but most people (including me) can't be bothered because it ends up being too wordy to refer to it, and we are confident of being able to debug it :) (This kind of bug also happens more often when people use such short variable names...) So what to do about it ? Looking at the TEXT style definition, it only uses 'xy as a temporary variable in the INIT code. (The shock!) Therefore I recommend to remove the 'xy attribute from the face definition and wrap the code, which uses xy in INIT, like so: use [xy][ ... ] This should make rebocalc.r work once again. (And it will save a tiny piece of memory for every instance of TEXT and TEXT-based styles). But it will need to be tested first, added to RAMBO, and finally reintegrated into rebol. So, yes, it is worth signalling :) Anton.