Author Topic: String to List Glitch  (Read 10200 times)

0 Members and 1 Guest are viewing this topic.

Offline Insorak

  • LV3 Member (Next: 100)
  • ***
  • Posts: 76
  • Rating: +4/-0
  • Omnimaga n00b
    • View Profile
String to List Glitch
« on: December 22, 2009, 02:09:59 pm »
Calculator: TI-84+ SE, OS 2.43

So apparently, on this calculator, you can store a string to a list without getting a syntax error.

Code: [Select]
" →L1
There's lots of weird properties about this "glitch", and I have a few questions about it...

If you enter the code above on the homescreen, and then just enter L1, you get an ERR:SYNTAX. When you press Goto, it shows essentially what's in the codebox above. Some other times, you get an ERR:DATA TYPE instead of an ERR:SYNTAX. It's weird. Yet, if you do a Rcl on L1, you can get the former contents of L1, or an empty list ({}) if L1 is empty. How does this work in memory?

It screws up the list editor if you try to view it there (Stat → Edit). What's up with the weird diamond symbol that appears next to the list name?

How can this error even occur? Apparently TI wasn't smart enough to prevent us from storing strings to lists? :O
« Last Edit: December 22, 2009, 02:10:46 pm by Insorak »
(re)working on Anti-RPG: 3% completion

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: String to List Glitch
« Reply #1 on: December 22, 2009, 02:44:51 pm »
Well acctualy there is a reason for being able to store Strings to lists, it is a feature, not a glitch! :) Try storing "L2+2" to L1 and then store {1,2,3,4} into L2, if you access L1, you will see it will equal {3,4,5,6}.  The diamond you see means that that list cannot be changed or edited, as it is governed by an equation, and not an actual set of numbers.

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: String to List Glitch
« Reply #2 on: December 22, 2009, 03:14:20 pm »
That's really cool! I might have to use this feature...

Offline mapar007

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 550
  • Rating: +28/-5
  • The Great Mata Mata
    • View Profile
Re: String to List Glitch
« Reply #3 on: December 22, 2009, 03:47:02 pm »
As builderboy says, it's not a glitch. It's the undocumented (?) list formula feature. Check asmin28, there's a reference to them in the chapter about the VAT.

Offline Insorak

  • LV3 Member (Next: 100)
  • ***
  • Posts: 76
  • Rating: +4/-0
  • Omnimaga n00b
    • View Profile
Re: String to List Glitch
« Reply #4 on: December 22, 2009, 03:52:24 pm »
Ahh, okay. That's interesting.

I never knew about that. Stupid undocumented stuff.
(re)working on Anti-RPG: 3% completion

Offline mapar007

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 550
  • Rating: +28/-5
  • The Great Mata Mata
    • View Profile
Re: String to List Glitch
« Reply #5 on: December 22, 2009, 03:53:24 pm »
Well, actually I'm not sure if it is undocumented... You should check the manual. (or I should do it myself :P )

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: String to List Glitch
« Reply #6 on: December 22, 2009, 07:31:24 pm »
There's stuff about it in the manual IIRC, I am sure I saw it, altough I never bothered to try

Offline jsj795

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1105
  • Rating: +84/-3
    • View Profile
Re: String to List Glitch
« Reply #7 on: December 23, 2009, 04:42:01 pm »
I saw those in TI83+ manual.
But I never used those


Spoiler For funny life mathematics:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.

Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: String to List Glitch
« Reply #8 on: December 23, 2009, 05:04:07 pm »
What is the token (in hexadecimal) for the diamond like symbol, asm-ers?

Edit:
As builderboy says, it's not a glitch. It's the undocumented (?) list formula feature. Check asmin28, there's a reference to them in the chapter about the VAT.
That's pretty cool! For those who havn't looked yet and kinda-or-more understand Asm, check day 21 (in the lesson folder) of http://www.ticalc.org/archives/files/fileinfo/268/26877.html .
« Last Edit: December 23, 2009, 05:07:53 pm by ztrumpet »

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: String to List Glitch
« Reply #9 on: May 24, 2010, 04:26:59 pm »
What about when you do something like "L2+2→Y? How does that work since you don't have the multi-number output a list does?
« Last Edit: May 24, 2010, 04:27:18 pm by meishe91 »
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: String to List Glitch
« Reply #10 on: May 24, 2010, 05:11:34 pm »
it actually makes a list Y, just like {1,2,3,4->Y would
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: String to List Glitch
« Reply #11 on: May 24, 2010, 05:21:33 pm »
Yeah I remember now the L is optional when creating a list. The BASIC parser seems to detect if you try to store a list instead of variable

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: String to List Glitch
« Reply #12 on: May 24, 2010, 05:34:47 pm »
Which makes Input commands so annoying, because they act the same. This strange behavior can also be interesting, as this brainteaser contest shows
« Last Edit: May 24, 2010, 05:36:23 pm by calcdude84se »
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: String to List Glitch
« Reply #13 on: May 24, 2010, 05:38:14 pm »
what kind of issue it can cause with Input that hinders people?

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: String to List Glitch
« Reply #14 on: May 24, 2010, 05:43:11 pm »
Probably more accurate is that it can make Input more annoying, because if you wanted the user to input a real/complex number, they can input a list, and now you have a list that you're program probably doesn't ever use.
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.