Author Topic: [Nspire] Optional arguments  (Read 4627 times)

0 Members and 1 Guest are viewing this topic.

Offline Roondak

  • LV3 Member (Next: 100)
  • ***
  • Posts: 54
  • Rating: +4/-3
    • View Profile
[Nspire] Optional arguments
« on: October 11, 2013, 05:52:22 pm »
So I was programming in TI-Nspire BASIC, and I was wondering if there was a way to specify an optional argument in a program. The built-in functions have these, so I was wondering if TI implemented it for user-created functions.

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: [Nspire] Optional arguments
« Reply #1 on: October 11, 2013, 06:02:03 pm »
Nope, sorry :(

(Although you may try passing a table and take what's inside)
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Roondak

  • LV3 Member (Next: 100)
  • ***
  • Posts: 54
  • Rating: +4/-3
    • View Profile
Re: [Nspire] Optional arguments
« Reply #2 on: October 11, 2013, 06:03:42 pm »
Nope, sorry :(

(Although you may try passing a table and take what's inside)
You mean taking in a list/matrix as an argument?

Offline Loulou 54

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 165
  • Rating: +39/-0
    • View Profile
    • Mes programmes sur TI bank.
Re: [Nspire] Optional arguments
« Reply #3 on: October 11, 2013, 06:34:11 pm »
Yes, or a string, so you can handle the optional argument thing yourself in your program.
Some of my program available here.. :)
http://ti.bank.free.fr/index.php?mod=archives&ac=voir2&id=1471