[REBOL] Re: mold bug

2003-12-07 Thread Anton Rolls
Check again, Volker, there really is a missing bracket. :) Anton. > Am Sonntag 07 Dezember 2003 12:37 schrieb Anton Rolls: > > Did anyone see this bug before? > > New 1.2.11.3.1 has it too. > > > > load probe mold/all make object! [class: self] > > { > > #[object! [ > > class: > > #[obje

[REBOL] Re: Storing/loading object functions

2003-12-07 Thread Volker Nitsch
Am Sonntag 07 Dezember 2003 21:33 schrieb Konstantin Knizhnik: > Hello Volker, > > The problem is that I want to be able to store in database ANY object. > So, if I correctly understand you, the only possible solution in this > case is create string with definition of the object "make object! ..."

[REBOL] Re: Storing/loading object functions

2003-12-07 Thread Konstantin Knizhnik
Hello Volker, The problem is that I want to be able to store in database ANY object. So, if I correctly understand you, the only possible solution in this case is create string with definition of the object "make object! ..." and then evaluate this string using "do". It seems to me that performan

[REBOL] Re: css vs View (VID) compositing? (was) Re: Re: page-breaks in html or pdf?

2003-12-07 Thread bry
> > > > OTOH - studying css docs for one day I have to say that it is way more > > > complicated than View. Maybe just a question of becoming used to > > > different concept? What do others think? > well styling in View always struck me as a weak css, then again I don't tend to use Rebol fo

[REBOL] Re: Storing/loading object functions

2003-12-07 Thread Volker Nitsch
Am Sonntag 07 Dezember 2003 11:27 schrieb [EMAIL PROTECTED]: > Hi, > > Volker wrote: > Instead of writing: > > a-object/handler/add a-object 3 > > we can use the above dispatcher and write: > > msg [a-object add 3] I want to note quickly that the lack of dispatching is intentional imho.

[REBOL] Re: mold bug

2003-12-07 Thread Volker Nitsch
Am Sonntag 07 Dezember 2003 12:37 schrieb Anton Rolls: > Did anyone see this bug before? > New 1.2.11.3.1 has it too. > > load probe mold/all make object! [class: self] > { > #[object! [ > class: > #[object! [...] ^ > ]]} > ** Syntax Error: Missing ] at end-of-script >

[REBOL] sort/compare

2003-12-07 Thread Anton Rolls
Just wondering if there is a way to find the indices of the pair of values passed to the compare function (directly, without using find). Here's a simple use of sort/compare: sort/compare a: [1 4 9 7 3 2] func [v1 v2][v2 < v1] Now here you can see how many comparisons occurred and at wh

[REBOL] Re: mold bug

2003-12-07 Thread Romano Paolo Tenca
Hi Anton, also mold fails, so i think that it is an unsupported feature: do mold context[a: self] ** Script Error: ... has no value ** Near: ... (thanks for your message about edit-text-undo.r) --- Ciao Romano -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsu

[REBOL] Re: Text width in VID (Was: Re: Compressing image data (bugs?))

2003-12-07 Thread Anton Rolls
There are two methods I discovered: text-size: get in layout reduce [ 'origin 0 'text "example string" ] 'size text-size: size-text f: make-face/size/spec 'text 1000x100 [ text: "example string" ] I found the second operates faster

[REBOL] Re: edit-text-undo.r

2003-12-07 Thread Anton Rolls
Doing great work Romano. Anton. > New version of edit-text-undo.r > > The 1.0.2 version correct another bug in RT code: unprintable key and hide > field. (See the script header for more info) > > Always here: > > http://www.rebol.it/%7Eromano/ > > --- > Ciao > Romano -- To unsubscribe from thi

[REBOL] mold bug

2003-12-07 Thread Anton Rolls
Did anyone see this bug before? New 1.2.11.3.1 has it too. load probe mold/all make object! [class: self] { #[object! [ class: #[object! [...] ]]} ** Syntax Error: Missing ] at end-of-script ** Near: (line 2) #[object! [ Anton. -- To unsubscribe from this list, just send an email to [EM

[REBOL] Re: Storing/loading object functions

2003-12-07 Thread Anton Rolls
I was about to say I found a nice way, but the following leads to a mold bug, which I mention in previous email: >> prototype: make object! [a: 23 class: none do [class: self]] >> o: make prototype [a: 42] >> o/class/a == 23 >> o: make prototype [a: 83] >> o/class/a == 23 >> o/a == 83 So you c

[REBOL] Re: Storing/loading object functions

2003-12-07 Thread lmecir
Hi, Volker wrote: > If class: ... > a more efficient way is to use a method-object, like > faces do. > then you have > > a-handler: context [ > type: "a-handler" > add: func [this increment] [this/value: this/value + > increment] > ; ^ note we pass 'this explicitely > ] > a-class: context [hand