[REBOL] rounding and precision

2002-04-05 Thread Ladislav Mecir
Hi all, I was experimenting with rounding again and noticed this: mod1: function [ {Compute a non-negative remainder} a [number!] b [number!] ] [r] [ either negative? r: a // b [r + abs b] [r] ] mod2: func [ {Compute a non-negative remainder} a [number!] b [number!]

[REBOL] Core 2.6 - replace/but refinement

2002-04-05 Thread Philippe Oehler
I'd like to see a refinement for 'replace, or even 'find : /but or /not The argument added with those raffinement will be the value that we don't want to find or replace Example: replace/but {4525j3343j1034810}34 55 334 In that case only the second occurence of 34 will be replaced. The first

[REBOL] Re: Core 2.6 - Last minute requests - take your chance!

2002-04-05 Thread Andrew Martin
Here's the entire contents of my %Patches.r script: ; Wraps throw-on-error around 'function body. if not equal? second third :function [catch] [ Function: func head insert/only at load mold third :function 2 [catch] compose/deep [ throw-on-error [ (copy/deep

[REBOL] Business Object Versioning

2002-04-05 Thread Robert M. Muench
Hi, my current applications uses object! to define a set of business objects the application than manipulates. While further developing the application the definition of those objects might change. New releases need to update the older business objects on-the-fly to keep it as simple as possible

[REBOL] Re: Core 2.6 - Last minute requests - take your chance!

2002-04-05 Thread SunandaDH
Hi Petr, Here's the feedbacks I'd like to see fixed: #7564 -- Much better context information on errors #7599 -- Fix Random with tuples #7528 -- syntax errors should be trappable -- stop Rebol crashing irrecoverably on badly formed code (example): AnObject: make object! [datafield:

[REBOL] /Link HP Jornada?

2002-04-05 Thread Robert M. Muench
Does someone know if it's possible to get /Link running on a HP Jornada machine runnung Windows CE? I want to give a demo of /Link on a PDA at an exhibition we are attending and where I will show IOS and P2P to the audience. Robert -- To unsubscribe from this list, please send an email to

[REBOL] newbie using rebol to call windows commandline

2002-04-05 Thread Bryan Rasmussen
I was just wondering if there are any basic examples(not using Rebol Command, I'm using Rebol View) of calling cmd.exe from rebol, and following the process? -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with unsubscribe in the subject, without the quotes.

[REBOL] Re: Core 2.6 - Last minute requests - take your chance!

2002-04-05 Thread Piotr Gapiski
fixed parse problem test: {aaa|bbb ccc|ddd eee} == {aaa|bbb ccc|ddd eee} parse/all test | == [aaa bbb ccc {ddd eee}] should be == [aaa {bbb ccc} {ddd eee}] Piotr Gapiski; mailto:[EMAIL PROTECTED] Olsztyska Strona Rowerowa; http://www.rowery.olsztyn.pl - Original Message - From:

[REBOL] Re: Business Object Versioning

2002-04-05 Thread Anton
Yes, I and others miss these functions too. Especially 1. 1. Add a new variable and value to an object 2. Rename a variable in an object 3. Delete a variable from an object 4. Set a different value for an existing variable in an object I really would like to have object manipulation

[REBOL] Re: Core 2.6 - Last minute requests - take your chance!

2002-04-05 Thread Petr Krenzelok
Piotr Gapiski wrote: fixed parse problem test: {aaa|bbb ccc|ddd eee} == {aaa|bbb ccc|ddd eee} parse/all test | == [aaa bbb ccc {ddd eee}] should be == [aaa {bbb ccc} {ddd eee}] really? Imo it should be: == [aaa {bbb ccc} {ddd eee}] -pekr- -- To unsubscribe from this list, please send

[REBOL] Re: Business Object Versioning

2002-04-05 Thread Carl Read
On 05-Apr-02, Robert M. Muench wrote: Hi, my current applications uses object! to define a set of business objects the application than manipulates. While further developing the application the definition of those objects might change. New releases need to update the older business objects

[REBOL] Re: newbie using rebol to call windows commandline

2002-04-05 Thread Petr Krenzelok
Bryan Rasmussen wrote: I was just wondering if there are any basic examples(not using Rebol Command, I'm using Rebol View) of calling cmd.exe from rebol, and following the process? you can't imo call any external app from Rebol, unless you have /Command or /Pro version -pekr- -- To

[REBOL] Re: Business Object Versioning

2002-04-05 Thread Romano Paolo Tenca
Hi Robert What needs to be done to update an object? Well, there are only four things: 1. Add a new variable and value to an object 2. Rename a variable in an object 3. Delete a variable from an object 4. Set a different value for an existing variable in an object I really would like to

[REBOL] Re: Business Object Versioning

2002-04-05 Thread SunandaDH
Robert: I really would like to have object manipulation functions for 1, 2 and 3. Where 1 can be solved by short function;-) I don't know any easy way. I had to do something similar when I wanted an object that was made up of the differences between two other objects. aa: make object!

[REBOL] Re: Core 2.6 - Last minute requests - take your chance!

2002-04-05 Thread Romano Paolo Tenca
24) revision of [catch] [throw] [] attributes --- Ciao Romano -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with unsubscribe in the subject, without the quotes.

[REBOL] Re: Core 2.6 - Last minute requests - take your chance!

2002-04-05 Thread Rebolint
Suggestion, but im not sure it's a big impact. I would like to see inside a func the possebility to declare a /local refinement like /local tst1 [string!] or /local tst2 [integer!]..etc. instead of /local tst1 ..etc.. So...to be able to declare the /local refinement instead of declairing it

[REBOL] Re: newbie using rebol to call windows commandline

2002-04-05 Thread Bryan Rasmussen
You must have a license key with rebol/view/pro for the /pro features (like shell access). I am using Win2k and this opens a console window: call cmd.exe thanks doubt I can get my boss to okay this until there's something being produced that's useful, a catch-22 I'm thinking what I could

[REBOL] Re: newbie using rebol to call windows commandline

2002-04-05 Thread Anton
I was just wondering if there are any basic examples(not using Rebol Command, I'm using Rebol View) of calling cmd.exe from rebol, and following the process? You must have a license key with rebol/view/pro for the /pro features (like shell access). I am using Win2k and this opens a console

[REBOL] trim/auto doesn't do anything?

2002-04-05 Thread Anton
Usage of trim says: /auto -- Auto indents lines relative to first line. So I tried this: trim/auto AAA^/ BBB^/ CCC^/ DDD == {AAA BBB CCC DDD} I was expecting all the lines to be lined up. Is this normal? Anton. -- To unsubscribe from this list, please send an email to [EMAIL

[REBOL] Re: newbie using rebol to call windows commandline

2002-04-05 Thread James Marsden
Hi Bryan, re: Subject: [REBOL] newbie using rebol to call windows commandline I was just wondering if there are any basic examples(not using Rebol Command, I'm using Rebol View) of calling cmd.exe from rebol, and following the process? you can always use the browse trick: browse

[REBOL] Re: Core 2.6 - Last minute requests - take your chance!

2002-04-05 Thread Robbo1Mark
Here's my wish list for REBOL/Core 2.6 and contains lot's of useful additional series! functions which are swap, top, pop, push, rest, drop, chop, nip, tuck, cut, slice and chomp. I've also included quote which is useful and a new and better license 8-). Here's the sources; quote: func [    

[REBOL] Re: Business Object Versioning

2002-04-05 Thread Anton
1. Add a new variable and value to an object Oh, and your problem 1 is already catered for with 'make... obj: make obj [c: 30] Carl Read No, it creates a new object. Now we have two objects. The value of 'obj has shifted from the old object to the new one. Anything that was referring

[REBOL] Re: Core 2.6 - Last minute requests - take your chance!

2002-04-05 Thread Romano Paolo Tenca
31) Some changes for switch: a) do :value instead of do value (for function! and parens! datatype) and do :case instead of do case (default) b) a new refinement /only, to permit multiple cases like this: switch/only 2 [1 2 3 [print found]] block! switch/only 2 reduce [1 2 3 does

[REBOL] Re: Core 2.6 - Last minute requests - take your chanc e!

2002-04-05 Thread Holger Kruse
On Fri, Apr 05, 2002 at 12:57:32PM -0500, Vos, Doug wrote: What about FTP any size file? Not an easy way to FTP a 100 to 200 Meg ZIP file today. Will that be easier in 2.6? That is already possible. You need to use /direct and a copy/append loop for streaming. -- Holger Kruse [EMAIL

[REBOL] Re: newbie using rebol to call windows commandline

2002-04-05 Thread Luis Rodríguez Jurado
Look at : ( Rebol/View Desktop): rebol.com/library/shell/launch-ext42.r or ( Web):http://www.reboltech.com/library/script-shell.html or Author Site (Web): http://flyingparty.com/deadzaphod/ Luis I was just wondering if there are any basic examples(not using Rebol Command, I'm using

[REBOL] Re: /Link HP Jornada?

2002-04-05 Thread Holger Kruse
On Fri, Apr 05, 2002 at 11:26:59AM +0200, Robert M. Muench wrote: Does someone know if it's possible to get /Link running on a HP Jornada machine runnung Windows CE? I want to give a demo of /Link on a PDA at an exhibition we are attending and where I will show IOS and P2P to the audience.

[REBOL] Re: Core 2.6 - Last minute requests - take your chance!

2002-04-05 Thread Vos, Doug
What about FTP any size file? Not an easy way to FTP a 100 to 200 Meg ZIP file today. Will that be easier in 2.6? -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with unsubscribe in the subject, without the quotes.

[REBOL] Re: Core 2.6 - Last minute requests - take your chance!

2002-04-05 Thread Holger Kruse
On Fri, Apr 05, 2002 at 08:54:53AM -0500, [EMAIL PROTECTED] wrote: Here's my wish list for REBOL/Core 2.6 and contains lot's of useful additional series! functions which are swap, top, pop, push, rest, drop, chop, nip, tuck, cut, slice and chomp. Not all that useful, IMHO. Some of it just

[REBOL] Re: Business Object Versioning

2002-04-05 Thread Gabriele Santilli
Hi Robert, On Friday, April 05, 2002, 10:42:53 AM, you wrote: RMM I really would like to have object manipulation functions for 1, 2 and 3. Where RMM 1 can be solved by short function;-). Well, I think you already know we can only workaround currently. :-) I see Romano has provided some,

[REBOL] Re: trim/auto doesn't do anything?

2002-04-05 Thread Gabriele Santilli
Hi Anton, On Friday, April 05, 2002, 2:12:00 PM, you wrote: A I was expecting all the lines to be lined up. A Is this normal? Yup. Look: trim/auto { AAA { BBB {CCC { DDD {} == {AAA BBB CCC DDD } Regards, Gabriele. -- Gabriele Santilli [EMAIL PROTECTED]

[REBOL] Re: Core 2.6 - Last minute requests - take your chance!

2002-04-05 Thread SunandaDH
Holger: Syntax errors are trappable. With your example, an error? try [] around it returns true thanks for the quick response. You guys seem to be on the case with the bug fixing. But there's an additional problem with _this_ syntax error: REBOL/Core 2.5.0.3.1 Copyright 1997-2001 REBOL

[REBOL] Re: Field or Send subject limitation to 45 chars???

2002-04-05 Thread Gabriele Santilli
Hi melis, On Thursday, April 04, 2002, 8:21:10 PM, you wrote: m So i wrote a script to send messages to my friend. But i cant send m more than 45 Characters? The answer is in the source of SEND: source send send: func [ {Send a message to an address (or block of addresses)} address

[REBOL] Newbie install problem: Undefined symbol : atexit

2002-04-05 Thread Sébastien Cérèze
Hi, I'm starting with rebol and i'm trying to install it following the instruction on my system (linux Gentoo with kernel 2.4-19) I copied both rebol and rebol.r in their drectories (/usr/bin and /usr/lib). When i tried to launch rebol with my shell it doesn't start. This is the message I

[REBOL] FTP large files (Answering my own question)

2002-04-05 Thread Vos, Doug
About FTP of large files. Here is a quote from the rebol documetation... (sorry I did not read...) Transferring Large Files Transferring large files requires special considerations. You may want to transfer the file in chunks to reduce the memory required by your computer and to provide user

[REBOL] Re: Core 2.6 - Last minute requests - take your chance!

2002-04-05 Thread Petr Krenzelok
Holger Kruse wrote: #7528 -- syntax errors should be trappable -- stop Rebol crashing irrecoverably on badly formed code (example): AnObject: make object! [datafield: 1] AnotherObject: make object! AnObject Syntax errors are trappable. With your example, an error? try []

[REBOL] Re: Core 2.6 - Last minute requests - take your chance!

2002-04-05 Thread Piotr Gapiski
should be == [aaa {bbb ccc} {ddd eee}] really? Imo it should be: == [aaa {bbb ccc} {ddd eee}] yes, sorry for the typo mistake... nevermind - there is a problem with 'parse func :-) Piotr Gapiski; mailto:[EMAIL PROTECTED] Olsztyska Strona Rowerowa; http://www.rowery.olsztyn.pl -- To

[REBOL] Re: Business Object Versioning

2002-04-05 Thread Carl Read
On 06-Apr-02, Anton wrote: 1. Add a new variable and value to an object Oh, and your problem 1 is already catered for with 'make... obj: make obj [c: 30] Carl Read No, it creates a new object. Now we have two objects. The value of 'obj has shifted from the old object to the new one.

[REBOL] Re: Core 2.6 - Last minute requests - take your chance!

2002-04-05 Thread Holger Kruse
On Fri, Apr 05, 2002 at 02:21:17PM -0500, [EMAIL PROTECTED] wrote: Holger: Syntax errors are trappable. With your example, an error? try [] around it returns true But there's an additional problem with _this_ syntax error: REBOL caused an invalid page fault in module REBOL.EXE at

[REBOL] Re: FTP large files (Answering my own question) - NOT!

2002-04-05 Thread Vos, Doug
Just tried this code snippet that I pasted from official rebol documentation. It does not work very well. 1. Zip files transfered with this method won't open. 2. buf-size - is not what it says it is 3. I thought write-io and read-io were not supposed to be used Any suggestion on how to improve

[REBOL] FTP Large Files (the saga continues...)

2002-04-05 Thread Vos, Doug
Still think FTP of large files should be improved in rebol/core 2.6 since I cannot get any code to work reliably in version 2.5. Does not mean 2.5 has a bug, just means that it is difficult for a person to make it work reliably. If it ain't simple and reliable, it still needs to be improved (in

[REBOL] FW: ftp dowlnoad of large file and read-io ....

2002-04-05 Thread Vos, Doug
Has this code been improved since Sept 12th 2001? FTP of large files is apparently a well guarded secret by rebolers. I will fiddle some more with Petr's version here and let you know my results. -DV -Original Message- From: Petr Krenzelok [mailto:[EMAIL PROTECTED]] Sent: Wednesday,

[REBOL] Re: trim/auto doesn't do anything?

2002-04-05 Thread Ingo Hohmann
Hi Anton, what the help of trim/auto _means_ is, that the first line gets trimmed, and all subsequent lines get trimmed to the same amount, e.g. if three spaces had to be removed in the first line, there are never more than three spaces removed in the following lines. Now in your example, the

[REBOL] Reliable FTP of large binary files with REBOL/Core 2.5

2002-04-05 Thread Vos, Doug
Just completed three successful tests with this code: ;--- Transfered 160 Meg zip file in 4 minutes 53 seconds (650 megs unzipped). 164205447 FTP Transfer took: 0:04:53

[REBOL] Re: trim/auto doesn't do anything?

2002-04-05 Thread Anton
I see, thanks guys. - Anton. Now in your example, the first line could not be trimmed, so nothing changed at all. Ingo trim/auto AAA^/ BBB^/ CCC^/ DDD == {AAA BBB CCC DDD} I was expecting all the lines to be lined up. P.S. That might be someting for 2.6:

[REBOL] Re: Core 2.6 - Last minute requests - take your chanc e!

2002-04-05 Thread Anton
All you need to do is read some docs. See http://www.rebol.com/docs/core23/rebolcore.html Section 14 Ports Anton. All these really cool hidden features in rebol 2.5 I keep discovering. Is there a link to a specific page of documentation about the FTP handling of large 100 -200 meg files?

[REBOL] Re: FW: ftp dowlnoad of large file and read-io ....

2002-04-05 Thread Charles
So I just rewrote core.pdf example of ftp download of large file, and it doesn't work, unless I clear the buffer each time. What am I doing wrong? Isn't that kind of how buffers are *supposed* to work? At least, in any programming language I've ever worked in (which, granted, has only been

[REBOL] Re: Newbie install problem: Undefined symbol : atexit

2002-04-05 Thread Charles
I've encountered a similar problem before. The issue was a matter of the libraries being different or differently named/referenced, etc. I don't remember what the conditions were, or what the answer was. It was ages ago. :/ [EMAIL PROTECTED] might be able to help, if no one else here can.

[REBOL] Re: Newbie install problem: Undefined symbol : atexit

2002-04-05 Thread Sébastien
thanks. Going to ask to rebol support. Regards. Sébatien --- Charles [EMAIL PROTECTED] wrote: I've encountered a similar problem before. The issue was a matter of the libraries being different or differently named/referenced, etc. I don't remember what the conditions were, or what