MathGroup Archive 1995

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

Search the Archive

Re: Options in self-defined functions

  • To: mathgroup at christensen.cybernetics.net
  • Subject: [mg1678] Re: [mg1612] Options in self-defined functions
  • From: harrison at helios.physics.utoronto.ca (David Harrison)
  • Date: Sun, 16 Jul 1995 23:54:14 -0400
  • Organization: University of Toronto - Dept. of Physics

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