|
Pages: [1]
|
 |
|
Author
|
Topic: how to get parameter file if refinement is /file (Read 241 times)
|
howto
Guest
|
when refinement and arg has the same name how to get the parameter ?
f: func[/file file][if file [print self/file]]
self doesn't work with function:
>> f: func[/file file][if file [print self/file]] >> f/file %hello.txt ** Script Error: self has no value ** Where: f ** Near: print self/file >>
|
|
|
|
|
Logged
|
|
|
|
|
CarlRead
|
In View 1.3, trying to create such a function causes an error...
>> f: func[/file file][if file [print self/file]] ** Script Error: Duplicate function value: file ** Where: throw-on-error ** Near: func [/file file] [if file [print self/file]]
You don't get the error in View 1.2, so I assume that or an earlier Core is what you're using?
Anyway, I guess the answer is DON'T DO THAT! ;-)
|
|
|
|
« Last Edit: October 31, 2005, 11:24:42 PM by CarlRead »
|
Logged
|
- Carl Read
|
|
|
|
|
Pages: [1]
|
|
|
 |