[REBOL] Re: Notes on seeding 'random/seed (long)

2004-03-23 Thread Ladislav Mecir
Hi all, I would like to remind you, that there are more reliable methods of producing random numbers than using a pseudo-random generator function. You can e.g. use Andrew's function to access www.random.org I plan to post my version (usable as the Random function replacement) to

[REBOL] Re: back from [idate]

2004-03-23 Thread Hallvard Ystad
Dixit [EMAIL PROTECTED] (01.29 23.03.2004): Hallvard: Has anyone got a quick little function to get idates back into the date! datatype? No, but I have a quick hack: Yes, of course. And then we can make this little enhancement to to-date: to-date: func [value /idate][ either idate [

[REBOL] Re: preserving file permissions?

2004-03-23 Thread Gabriele Santilli
Hi Tom, On Tuesday, March 23, 2004, 2:40:25 AM, you wrote: TF will using the /binary refinements of read and write TF preserve file permissions exactly? Nope. You can use: clone-attributes: func [dest src /local modes] [ modes: context get-modes src get-modes src 'file-modes ;

[REBOL] Undocumented: Index value local to FOR loop

2004-03-23 Thread Giuseppe Chillemi
I have found this undocumentend behaviour: Try this script: rebol [ Author: Giuseppe Chillemi Tittle: A little attemp ] esterno: does [ print [indice] ] for indice 1 10 1 [ esterno ] Halt Rebol tell me that

[REBOL] Re: Undocumented: Index value local to FOR loop

2004-03-23 Thread Gregg Irwin
Hi Giuseppe, GC I have found this undocumentend behaviour: GC for indice 1 10 1 [esterno] GC Rebol tell me that indice is not initalized but it is ! This word seems to GC remain local to the for loop. Yes, FOREACH and REPEAT work the same way. FOR is a mezzanine, so you can see how it

[REBOL] Re: preserving file permissions?

2004-03-23 Thread Gabriele Santilli
Hi Gregg, On Tuesday, March 23, 2004, 6:35:51 PM, you wrote: GI Do you want to use 'file-modes or 'copy-modes? I'm not sure what all Probably it should be 'copy-modes... I haven't had any problems so far using 'file-modes on Windows, though... Regards, Gabriele. -- Gabriele Santilli

[REBOL] Re: Undocumented: Index value local to FOR loop

2004-03-23 Thread Volker Nitsch
Hi Giuseppe, On Dienstag, 23. März 2004 15:50, Giuseppe Chillemi wrote: I have found this undocumentend behaviour: Try this script: rebol [] esterno: does [ print [indice] ] for indice 1 10 1 [ esterno ] Halt Rebol tell me that indice is not initalized but it

[REBOL] Re: Undocumented: Index value local to FOR loop

2004-03-23 Thread Ladislav Mecir
Gregg Irwin napsal(a): ...REBOL uses 'definitional scoping', which may seem a bit confusing at first when used with literal arguments. fn: func ['word] [print word word: 10 print word] fn hello hello 10 hello ** Script Error: hello has no value ** Near: hello HTH!