[REBOL] Re: DyBASE test

2003-12-29 Thread moliad
did you know you didn't have to use actual objects to implement object-like behaviour. this has the effect that you can extend the object at will... just use a block with set-word values. I have no ideas about speed, just that this could be a solution to your problem example: object: [

[REBOL] Re: DyBASE test

2003-12-28 Thread Konstantin Knizhnik
Hello SunandaDH, Sunday, December 28, 2003, 1:18:52 AM, you wrote: Sac Konstantin: And once object is created it is not possible to add fields to it (very strange restriction for such flexible and dynamic language as Rebol). Sac In simple cases (if the object is not yet referenced

[REBOL] Re: DyBASE test

2003-12-28 Thread Konstantin Knizhnik
New version 0.18 of DyBASE Rebol API is available. Now it is not necessary to specify prototype object: DyBASE is able to fetch object with arbitrary set of fields. It is possible because now fetching of object is done in three steps: 1. Fetch object fields into the block 2. Create object using

[REBOL] Re: DyBASE test

2003-12-28 Thread Graham Chiu
Re: Re: DyBASE test New version 0.18 of DyBASE Rebol API is available. Hi Konstantin, Can you make it is so that attempting to close a database twice results in an error rather than a crash? Cheers, -- Graham -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with

[REBOL] Re: DyBASE test

2003-12-28 Thread Konstantin Knizhnik
Hello Graham, Sunday, December 28, 2003, 10:18:05 PM, you wrote: GC Re: Re: DyBASE test New version 0.18 of DyBASE Rebol API is available. GC Hi Konstantin, GC Can you make it is so that attempting to close a database GC twice results in an error rather than a crash? ok, will be fixed in

[REBOL] Re: DyBASE test

2003-12-27 Thread Robert M. Münch
On Thu, 25 Dec 2003 20:25:14 +0300, Konstantin Knizhnik [EMAIL PROTECTED] wrote: Certainly it should be possible to use any word as object field. As I understand from your mail, the problem takes place while processing of to field. I added to field to my guess example. It works without any

[REBOL] Re: DyBASE test

2003-12-27 Thread Konstantin Knizhnik
Hello Robert, Saturday, December 27, 2003, 1:36:17 PM, you wrote: RMM On Thu, 25 Dec 2003 20:25:14 +0300, Konstantin Knizhnik RMM [EMAIL PROTECTED] wrote: Certainly it should be possible to use any word as object field. As I understand from your mail, the problem takes place while

[REBOL] Re: DyBASE test

2003-12-27 Thread SunandaDH
Konstantin: And once object is created it is not possible to add fields to it (very strange restriction for such flexible and dynamic language as Rebol). In simple cases (if the object is not yet referenced anywhere else), it is very simple an-object: make object! [field1: now]

[REBOL] Re: DyBASE test

2003-12-25 Thread Robert M. Münch
On Wed, 24 Dec 2003 12:16:18 EST, [EMAIL PROTECTED] wrote: REBOL is lacking in lint-type utilities and debuggers and so on. As several people over the years have pointed out, it is hard to write such tools when the whole language is so soft. What I would like as a first step is a way to

[REBOL] Re: DyBASE test

2003-12-25 Thread Robert M. Münch
On Tue, 23 Dec 2003 21:54:19 +0300, Konstantin Knizhnik [EMAIL PROTECTED] wrote: New version of DyBASe 0.17 is available at my site. Hi, the db/close bug id gone but I still have a problem: do %robby-test.r to-index from-index msg-id-index id: 2987 msg-id to ** Script Error: set expected

[REBOL] Re: DyBASE test

2003-12-25 Thread Konstantin Knizhnik
Hello Robert, Certainly it should be possible to use any word as object field. As I understand from your mail, the problem takes place while processing of to field. I added to field to my guess example. It works without any problems. So the problem seems to be somewhere else. Can you send me

[REBOL] Re: DyBASE test

2003-12-24 Thread Robert M. Münch
On Tue, 23 Dec 2003 21:54:19 +0300, Konstantin Knizhnik [EMAIL PROTECTED] wrote: Sorry, stupid bug in storage close method (func keyword was missed) cause that problem: database was not closed and so could not be reopened. The language constructions should be more protected from errors:)

[REBOL] Re: DyBASE test

2003-12-24 Thread Konstantin Knizhnik
Hello Robert, Wednesday, December 24, 2003, 2:02:11 PM, you wrote: RMM On Tue, 23 Dec 2003 21:54:19 +0300, Konstantin Knizhnik RMM [EMAIL PROTECTED] wrote: Sorry, stupid bug in storage close method (func keyword was missed) cause that problem: database was not closed and so could not be

[REBOL] Re: DyBASE test

2003-12-24 Thread Gabriele Santilli
Hi Konstantin, On Wednesday, December 24, 2003, 12:25:55 PM, you wrote: KK The bug is that word func is missed, so instead of method definition KK this code is treated by Rebol as initialization of close field with KK block [close database]. What compiler does with second block is not KK clear

[REBOL] Re: DyBASE test

2003-12-24 Thread Romano Paolo Tenca
Hi, Konstantin Knizhnik make object! [ close: [close database] [dybase_close db] ] Which word do you want to protect? close? It has to be defined... The bug is that word func is missed, so instead of method definition this code is treated by Rebol as initialization of close field

[REBOL] Re: DyBASE test

2003-12-24 Thread Gregg Irwin
Hi Konstantin, Gabriele and Romano already pointed out some technical aspects, so I'll just add some comments. KK That is why I said that language should be less error prone. KK It can be less flexible, require redundant definitions, but it should KK be safe and be able to catch at compiler

[REBOL] Re: DyBASE test

2003-12-24 Thread SunandaDH
Gregg: For me, REBOL delivers a lot today, but what excites me most is that I see it as just the-tip-of-the-tip-of the iceberg. :) Of course, it's all those bits under water that you can't see that sink ships. REBOL is lacking in lint-type utilities and debuggers and so on. As several

[REBOL] Re: DyBASE test

2003-12-24 Thread A J Martin
Sunanda wrote: A line of code like: print if either or and but may be completely valid in its context. And so is this dialect (Caution: C# code inside!): Person: Person's details. [ Honourific: Honourific Global/Mesh/Honourifics Forename: string Surname: string Nickname:

[REBOL] Re: DyBASE test

2003-12-23 Thread Konstantin Knizhnik
Hello Robert, Sorry, stupid bug in storage close method (func keyword was missed) cause that problem: database was not closed and so could not be reopened. The language constructions should be more protected from errors:) New version of DyBASe 0.17 is available at my site. I has changed (once

[REBOL] Re: DyBASE test

2003-12-23 Thread Graham Chiu
Re: DyBASE test database can't be opened again from the same session. Don't know why. Does anybody know what the problem is? How to close down a program so that I can run it from the same session again? Hi Robert, I haven't looked at your script yet, but notice that probe db/close