----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, September 06, 2000 1:03 AM Subject: [REBOL] Why cant mutually exclusive refinements have the same argument name > 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 exclusive arguments > 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" e.g main/file %this.txt 'put main/file %this.txt 'get Cheers, Allen K
