[REBOL] Why cant mutually exclusive refinements have the same argument name Re:
From: allen:rebolforces at: 6-Sep-2000 1:51
----- Original Message -----
Sent: Wednesday, September 06, 2000 1:03 AM
Subject: [REBOL] Why cant mutually exclusive refinements have the same
> I have a function that will either get or put a filename... of course I
want to use the same name for the file regardless, and this will not pose a
problem because the arguments are mutually exclusive.
> However, REBOL is complaining about me using the same name for 2 mutually
Since all the refinements can be used, how would REBOL know that you mean
them to be mutually excusive? (or for that matter how would anyone else
using your function know that)
If it is mutally exclusive, a better approach would be to use a single
refinement with two parameters.
/file orderfile-name [file!] method "Put an orderfile on our server"
main/file %this.txt 'put
main/file %this.txt 'get