[REBOL] Why doesn't this work? Re:(2)

2000-03-06 Thread rex

On Sat, Mar 4, 2000,  [EMAIL PROTECTED] wrote:

Hi,

two possibilities, the first looks better:

1)

obj: make object! [a: "" b: ""]
t: obj
new-obj: make t []

2)

obj: make object! [a: "" b: ""]
t: 'obj
new-obj: make get t []

Thanks for the help. The error message I received seems pretty odd though.

.:Eric

 ** Script Error: Expected one of: word! - not: block!.
 ** Where: new-obj: make t []



[REBOL] Money Trouble? Re:(2)

2000-03-06 Thread bpaddock

 Small fractions of the money datatype are now correctly rounded to two
digits. 

Properly when dealing with money it is best to use Binary
Coded Decimal (BCD) math.  This removes all rounding issues.

On the other hand if your writing the accounting program
put all of the junk below $00.01 in to a accumulating
account, and make a with drawl from it after about a year.
:-)



[REBOL] REBOL international Re:(4)

2000-03-06 Thread anton_rolls


  What would be really interesting is to be able to do REBOL right
  to left in
  Arabic, Urdu or Sindhi. [l'empreinte Druck stampa impressão impresión] is
  all very well for all you LtoR types but what about the rest of the known
  world?

I guess if you want to type from right to left you could maybe get an
editor that does that, then set the words in your language with letters
in reverse order.

Are there any such editors?
Anton.



[REBOL] texthtml.r Re:

2000-03-06 Thread Al . Bri

ay wrote:
 looking for a method to use texthtml.r to process several text files at
once...

Something like:

Files: [%file1.txt %file2.txt]

foreach File Files [
data: text-to-html/convert read file
write head change find file "." ".html" data
]

I hope that helps!

Andrew Martin
ICQ: 26227169
http://members.xoom.com/AndrewMartin/
--




[REBOL] Fork? Re:(4)

2000-03-06 Thread roan

Hello deadzaphod,

Monday, March 06, 2000, 1:44:29 PM, you wrote:

dhc If you want to take a look at how it works it's called "webserv.r"
dhc and is available on rebol.org.

I grabbed it and I'm going to explore it %) Thank you for help.

dhc Or mail off-list and I can try to explain it.

In case of problems I'll disturb you without fail ;) TNX again.


-- 
Best regards,
 Alexandermailto:[EMAIL PROTECTED]




[REBOL] REBOL international Re:(3)

2000-03-06 Thread ralph



 What would be really interesting is to be able to do REBOL right
 to left in
 Arabic, Urdu or Sindhi. [l'empreinte Druck stampa impressão impresión] is
 all very well for all you LtoR types but what about the rest of the known
 world?

 Bruce.


Ummm... all we are doing here is redefining the 'print' function word... I
would think left to right has nothing to do with printing, only about how it
is read after being printed.

Actually, next I want to look at translating REBOL functions into Japanese
Kanjii characters. Now THAT should be interesting.

--Ralph Roberts




[REBOL] nntp limited by date Re:

2000-03-06 Thread whip


  I would like to use the nntp.r protocol to retrieve messages from a
 newsgroup limited by date.  Is there any way to do this with nntp.r?
  -Ryan

Sure.  Read up on using nntp.r's xhdr functionality.  You can
retrieve just the date headers of a given news group and then
determine which range of messages you want before downloading them.

-jeff



[REBOL] Money Trouble?

2000-03-06 Thread larry

Hi folks,

Over the weekend I was playing with the REBOL money! datatype and discovered
some problems. Using the REBOL/Core console:

 x: $10
== $10.00

 y: x + .01
== $10.01

 y - x
== $0.00 ;surprising result, displayed value is not correctly
rounded

We can check what is happening by retreiving the decimal value from the
money values:

 dx: second x
== 10

 dy: second y
== 10.01

 dy - dx
== 9.79E-3 ;this is the actual numeric value of y - x, it
should round to .01

The problem seems to be incorrect or absent rounding of the difference:

 to-money dy - dx
== $0.00

Checking when to-money will return .01 vs .00:

 a: to-money "9.99934E-3"
== $0.00
 b: to-money "9.99935E-3"
== $0.01

Clearly both of these values should round to $.01.

There some other anomalies also:

 (y - x) * 1.01
== $0.00

 (y - x) * 1.1
== $0.01

 (y - x) * 10;displayed result is wrong by a factor of ten
== $0.01

 (y - x) * 100  ;displayed result is correct
== $1.00

These problems are not due to the round-off intrinsic to decimal values.
Even in the worst case we have 15 significant digits of precision. The
example shows incorrect rounding in the 4th significant digit.

I wonder whether others have noticed this problem?

Note: this has been CC'd to feedback as a bug.

Cheers

Larry





[REBOL] Freenet Protocol help needed, was closing port within protocol Re:(2)

2000-03-06 Thread ingo

Hi Gabriele,

back home, and giving it a try soon ... thank you!

Those were the words of [EMAIL PROTECTED]:
 Hello [EMAIL PROTECTED]!
... 
 I think there's no point in using open-proto here, since proxy
 support would need some work below too... anyway, I'm no expert
 here, so... :-)

I just looked into root-protocol, and found 'open / 'open-proto 
were the same, so I thought it'd be a bright idea, to call 
'open-proto, and add my changes in 'open.

... 
 I think you can return answer here too (even if returning data
 from insert is not consistent with other protocols)

Was thinking about this, too. Well actually write may behave like
read in freenet protocol (right now), when trying to add a key, 
that's already in the system ...

And by the way, has anyone written an SHA1 algorithm in Rebol?
Current protocol will use encoded keys ...


thanks again,

Ingo

--  _ ._
ingo@)|_ /|  _| _  We ARE all ONE   www._|_o _   _ ._ _  
www./_|_) |o(_|(/_  We ARE all FREE ingo@| |(_|o(_)| (_| 
http://www.2b1.de/Rebol/ ._|  ._|