MathGroup Archive 1995

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Options in self-defined functions


In article <3tmskr$hvo at news0.cybernetics.net>, Anthony Rebello
<arebello at knox.edu> wrote an excellent summary of setting up
Options.  One small point however: he defines the function as:

>f[x_,opts___Rule] := ...

A slightly better idea is to use OptionQ:

 f[x_,opts___?OptionQ] := ...

-- 
David Harrison                             | "The senses do not lie, only 
Dept. of Physics, Univ. of Toronto         |  they do not tell the truth."
Inet: harrison at faraday.physics.utoronto.ca |              -- Mach
Tel: 416-978-2977  Fax: 416-978-5848       |


  • Prev by Date: Re: Masked array operations
  • Next by Date: "?" and "??"
  • Previous by thread: Re: Options in self-defined functions
  • Next by thread: Re: Options in self-defined functions