MathGroup Archive 2008

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

Search the Archive

Re: Passing default options to nested function call

  • To: mathgroup at smc.vnet.net
  • Subject: [mg94086] Re: Passing default options to nested function call
  • From: Stoney Ballard <stoneyb at gmail.com>
  • Date: Thu, 4 Dec 2008 07:17:01 -0500 (EST)
  • References: <gh5o06$ojq$1@smc.vnet.net>

On Dec 3, 5:45 am, Bill Rowe <readn... at sbcglobal.net> wrote:
...
> The answer almost certainly depends on how options are used in
> the function code. My preferred way of using options in
> functions I write look something like
>
> func[x_,y_,opts__]:=
>    Module[{stuff},
>      setting = opt1/.{opts}/.Options[func];
>      ...

Have you ever seen a case where a duplicated option symbol caused a
problem in a built-in function?


  • Prev by Date: Re: Quick help needed very much!!!!
  • Next by Date: Do I have to worry about "Left" division for matrices?
  • Previous by thread: Re: Passing default options to nested function call
  • Next by thread: Manipulate slider moves from top to side