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!]
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
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
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
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:
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
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.
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:
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
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
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
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
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
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!
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.
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
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
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
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
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
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 [
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
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
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
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
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.
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.
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
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,
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]
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
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
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
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
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 []
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
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.
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
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
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
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,
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
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
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:
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?
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
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.
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
48 matches
Mail list logo