Re: TIB: Optional arguments on the 89
[Prev][Next][Index][Thread]
Re: TIB: Optional arguments on the 89
i don't think you can do that. what you can do i think is this:
whatever({list})
or
whatever({1,2,3,4})
where list is whatever you want, however many elements you want.
you could then use the list to do whatever you wanted to do.
---Duck1123@aol.com wrote:
>
>
> Is there any way to allow optional arguments for programs, or
functions on the
> TI-89?
>
> What I want would look something like this:
>
> <normal way>
> fnord\fnord(a,b)
>
> <with extra arguments>
> fnord\fnord(a,b,c,d)
>
> I want c and d to take default values if they arn't given.
>
> <I want this to work>
> fnord(a,b,c=1,d=2)
>
> that way when you run the program with:
> fnord\fnord(3,4)
>
> then
> a=3,
> b=4,
> c=1,
> and d=2
>
> anyone know a way to do this?
>
>
> DUCK
>
> http://members.aol.com/duck1123/index.html <-- has nothing to do with
> calculators,yet!
>
==
The Garth Johnson
Visit my website! http://www.bigfoot.com/~garthjohnson
"Now with jokes for your mental enjoyment!"
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com