World: r3wp
[RAMBO] The REBOL bug and enhancement database
older newer | first last |
Anton 17-Oct-2006 [1871] | No, I was looking forward to using it. I've been avoiding the overhead of maintaining another patch script by using if error? set/any 'err try [...] over and over... |
Ladislav 17-Oct-2006 [1872] | usage: try/recover [...] 'error [print disarm error] |
Anton 17-Oct-2006 [1873] | The pity is more from the "richness of human expression" point of view. I can understand the more conservative "don't fill up the default namespace with too many functions" point of view too.. |
Ladislav 17-Oct-2006 [1874] | (i.e. the usage will be the same as the usage of the Default function) |
Anton 17-Oct-2006 [1875x2] | Ok, that's not bad. It does cut down 9 characters. |
Oh I think I remember the discussion now. | |
Ladislav 17-Oct-2006 [1877x2] | The advantage of "reusing" TRY is, that the code will be easier to maintain this way (TRY and DEFAULT would have a lot of common code otherwise) |
(I am speaking about interpreter code above) | |
Anton 17-Oct-2006 [1879x3] | Yes, that is good reasoning. |
I am satisfied once again. | |
#4124 "set-modes doesn't work on file directories" - maybe add a note to Paul here that "the filesystem may not support setting all of the modes that are gettable by get-modes. For instance you can't set modification-date, but you can set the owner-write flag." Maybe there should be a more informative access error type, not just "Cannot open ...". | |
Graham 17-Oct-2006 [1882] | but it should work in windows |
Maxim 17-Oct-2006 [1883] | will you be online for a few minutes? |
BrianH 17-Oct-2006 [1884x2] | Anton, error #4124 is not a filesystem problem. I replicated it here, on NTFS, in a directory that I have permission to do anything. NTFS supports changing the modification date of directories - I have an Explorer shell extension that does just that, as well as a command line touch utility. REBOL can change that attribute on files, but not directories. REBOL is probably hust using the wrong API. |
hust -> just (typo) | |
Pekr 17-Oct-2006 [1886] | different API - maybe the same goes with TimeZone info .... Ladislav found new pointer .... currently under investigation ... |
Anton 18-Oct-2006 [1887] | Ok Brian, thanks for the clarification. Maybe that info should be added to the ticket "NTFS supports changing the modification date of directories..." |
Henrik 22-Oct-2006 [1888] | I accidentally put a string in the font size, like this: view layout [area font [size: "m"]] Windows gives me a small font, which seems right. On OSX I either get screen trashing inside the text area, hanging or a segmentation fault. |
Robert 23-Oct-2006 [1889] | Is there any simple way to add a screenshot upload function to the RAMBO script? Or has anyone done it already? |
Anton 23-Oct-2006 [1890] | No, and the RAMBO source is not open, as far as I know. |
Henrik 24-Oct-2006 [1891] | can anyone make the layout code I wrote above crash in Linux? I don't have Linux handy... |
Volker 24-Oct-2006 [1892x2] | survives here. |
font is smaller | |
Rebolek 24-Oct-2006 [1894x2] | Actually, I see quite the opposite. Using following code: view layout [text "MIQXA" text "MIQXA" font [size: "m"]] the second line is bigger .I'm trying this on xubuntu 6.06 (using area has same results, but area is much bigger than text so it's harder to notice). I'm rebooting to Win to see the difference. |
so I tried on Win and the second line is so small so it's unreadable (font size 1 or something like that) | |
Henrik 24-Oct-2006 [1896x3] | yes, I know. It segfaults on OSX so I wondered if it happened under Linux as well. |
oh, you wrote about it. I didn't notice volkers input. sorry. | |
I will rambo it if there are no objections. | |
Anton 24-Oct-2006 [1899] | No objections on anything that causes a segfault (unless, of course, it's already in rambo somewhere.) |
Anton 26-Oct-2006 [1900x2] | ; Crash write %test.r {rebol [] do %test2.r probe system/script/args} write %test2.r {rebol [] system/script/parent: none} ; <-- naughty parenticide do %test.r ; <-- DO file makes an error but doesn't really survive do %test.r ; <-- so this second attempt shuts down console |
DO probably needs to hang on to the original system/script object, and restore it after the child script has returned. The child script could probably also modify attributes of the parent object and leave the parent script confused. | |
Maxim 26-Oct-2006 [1902] | strange, I didn't even know about /parent !! |
BrianH 26-Oct-2006 [1903] | I like the idea from the R3 blogs about having SYSTEM be a function that generates objects, rather than an object. That way system/script would return an object that wouldn't mess up the infrastructure when it is changed. |
Maxim 26-Oct-2006 [1904x3] | its always safer to have hooks and apis, than direct data. |
which is why I dearly hope R3 adds accessors. | |
many points in many r3 discussion would be moot with this simple concept added to a new class! or current object! engine. | |
BrianH 26-Oct-2006 [1907] | I have been a big advocate of accessors here and in the blog comments, though mostly for interoperability with other object models that have them (all of the major platforms now). Safety is a good reason for them as well. |
Maxim 26-Oct-2006 [1908x3] | and invisible datatype... with accessors, I could code a liquid api which is completely hidden from users... totally non-aggressive to the way they currently code and yet still allow custom types of liquid, just by changing how the accessors are built. |
I could do magic objects ;-) | |
anyways... I'm getting OT... (rambo list) | |
BrianH 26-Oct-2006 [1911] | Indeed. |
Pekr 26-Oct-2006 [1912] | what do you mean by "accessor" in rebol terms? |
Anton 27-Oct-2006 [1913] | So, no objections to me creating a ticket for that ? |
Ladislav 27-Oct-2006 [1914] | no objections from me |
BrianH 27-Oct-2006 [1915] | Petr, there were discussions in the R3 blog about accessors. It's quicker to just look there. |
Pekr 27-Oct-2006 [1916] | I think I understand - it is simply that some "variable" is not variable, but a function? In Visual Objects, we could define variable being an accessor, you then normally used oMyObject:myVar: 3 - which could mean - you either assign it to variable, or (if an accessor), the same syntax is being used, but it was passed as a parameter to function, which could do type checking, whatever ... |
BrianH 27-Oct-2006 [1917] | Yup, something like that. Accessors were introduced in Self, then ported to Delphi (as properties), then from there to ActiveX, Java (as a coding convention), C# (and the rest of .NET), and then many other modern languages and platforms (most of the major ones). |
Maxim 27-Oct-2006 [1918x2] | python is defined from ground up with accessors, you can replace the in-built datatypes!!! |
I guess self is like that also. | |
BrianH 27-Oct-2006 [1920] | Python is designed that way now, but it didn't start that way. That's something I like about Python - when they add new features in a new version, they are not afraid to redesign the whole system to take advantage of the new features. |
older newer | first last |