Talk:My primestat: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Bale
No edit summary
imported>StDoodle
No edit summary
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
* What's there to explain?  The not-logged-in value of functions that are only meaningful when logged in is pure garbage.  There was no effort expended towards having them return a particular value; any value that doesn't immediately cause a crash is good enough.  There is no guarantee that the garbage value will be consistent between versions of the program, or even successive calls to the function.
* What's there to explain?  The not-logged-in value of functions that are only meaningful when logged in is pure garbage.  There was no effort expended towards having them return a particular value; any value that doesn't immediately cause a crash is good enough.  There is no guarantee that the garbage value will be consistent between versions of the program, or even successive calls to the function.
* * I guess I just wanted to know why it returns this value specifically, not that it really matters in the context of this function. It's not really important, so whatever. --[[User:Heeheehee|Heeheehee]] 05:04, 12 March 2010 (UTC)
* * I guess I just wanted to know why it returns this value specifically, not that it really matters in the context of this function. It's not really important, so whatever. --[[User:Heeheehee|Heeheehee]] 05:04, 12 March 2010 (UTC)
* * That kind of information only serves to clutter the page with information that no user can ever make any use of. You might ask about it on the forum if you really do want an answer. Only Veracity and Hola might know why. It doesn't belong on the wiki. --[[User:Bale|Bale]] 09:18, 12 March 2010 (UTC)
** That kind of information only serves to clutter the page with information that no user can ever make any use of. You might ask about it on the forum if you really do want an answer. Only Veracity and Hola might know why. It doesn't belong on the wiki. --[[User:Bale|Bale]] 09:18, 12 March 2010 (UTC)
 
The not-logged in junk is only here from momentum (most was already on the wiki) and a couple of people seemed to want such info preserved. In my mind, such info is useless. You can't really do anything meaningful in ASH w/o being logged in (sure, you could do some file / map parsing of stuff, but for the most part it would be easier some other way). I, for one, would vastly prefer that "Special" be used for oddities that one may actually encounter during normal operation, or if simple-to-make errors are made. (The -1 return value for index_of() & last_index_of() being examples.) It's not a huge deal, as they are at least separated from the main function description, but still... who would really care about them?--[[User:StDoodle|StDoodle]] 14:29, 12 March 2010 (UTC)

Latest revision as of 14:29, 12 March 2010

Re the special info: This does not make sense to me. It does return $stat[moxie], but I can't really justify this -- $stat[moxie].to_int() is 3, not 0. It'd be helpful if someone could explain -why- this happens. --Heeheehee 04:35, 12 March 2010 (UTC)

  • What's there to explain? The not-logged-in value of functions that are only meaningful when logged in is pure garbage. There was no effort expended towards having them return a particular value; any value that doesn't immediately cause a crash is good enough. There is no guarantee that the garbage value will be consistent between versions of the program, or even successive calls to the function.
  • * I guess I just wanted to know why it returns this value specifically, not that it really matters in the context of this function. It's not really important, so whatever. --Heeheehee 05:04, 12 March 2010 (UTC)
    • That kind of information only serves to clutter the page with information that no user can ever make any use of. You might ask about it on the forum if you really do want an answer. Only Veracity and Hola might know why. It doesn't belong on the wiki. --Bale 09:18, 12 March 2010 (UTC)

The not-logged in junk is only here from momentum (most was already on the wiki) and a couple of people seemed to want such info preserved. In my mind, such info is useless. You can't really do anything meaningful in ASH w/o being logged in (sure, you could do some file / map parsing of stuff, but for the most part it would be easier some other way). I, for one, would vastly prefer that "Special" be used for oddities that one may actually encounter during normal operation, or if simple-to-make errors are made. (The -1 return value for index_of() & last_index_of() being examples.) It's not a huge deal, as they are at least separated from the main function description, but still... who would really care about them?--StDoodle 14:29, 12 March 2010 (UTC)