[REBOL] Re: check me? deleting files based on a pattern

2003-11-02 Thread Anton Rolls
RebOldes' code below is not as fast as possible yet, I think, though less likely to write a bug by missing or adding an extra [ next dir-port ], and it is less code to maintain, still... If you look at source delete, it is opening a directory port to do its work. Better to use remove on a direct

[REBOL] Re: check me? deleting files based on a pattern

2003-11-02 Thread rebOldes
Hello Tom, Tuesday, October 28, 2003, 3:02:40 PM, you wrote: TF> Anton Rolls wrote: >>Looks pretty safe to me. >>You are just in one directory. >>This will delete all files with "editpost" >>in the name somewhere. >>I would catch errors while deleting the file >>so you are not interrupted by a

[REBOL] Re: Why I don't need get-word here!

2003-11-02 Thread Andrew Martin
Patrick wrote: > - Do I need the get-word? No. > - Is there a difference in the result? No. > two syntaxes, the same results, what am I missing ? The ":" in the get-word ":face" prevents the Rebol interpreter from doing an extra evaluation step; that is, the evaluation associated with words r

[REBOL] Re: Why I don't need get-word here!

2003-11-02 Thread Gregg Irwin
Hi Patrick, PPln> In a previous version of my code, I was not using the get-word PPln> ... and it was working the same (AFAICT). PPln> So my questions are: PPln> - Do I need the get-word? PPln> - Is there a difference in the result? If your FACE values are faces (objects), you don't need to us

[REBOL] Why I don't need get-word here!

2003-11-02 Thread Patrick . Philipot
Hi List, Warning, this is a long post! As often while coding some practical actions, I am faced with fundamentals questions. I have some workarounds available, and it is not a matter of doing things. What matters is understanding fully what I am doing and there is no better place to ask... The