Results 1 to 6 of 6

Thread: 17981: Allow comments starting with // inside (non-string) plural typed constants

  1. #1
    Feed Reader RSS Bot's Avatar
    Join Date
    Jul 2009
    Posts
    10,485

    RSS 17981: Allow comments starting with // inside (non-string) plural typed constants

    Allow comments starting with // inside (non-string) plural typed constants

    by veracity0 on 2017-04-11 13:22:41

    M /src/net/sourceforge/kolmafia/textui/Parser.java (view) (diff)
    Download the latest KolMafia build here.
    Every new revision posted within the hour.
    New EXE builds every Monday.

  2. #2
    Minion Bale's Avatar
    Join Date
    Jun 2008
    Posts
    13,222

    Default

    Huh. Wow!

    This is a surprising and pleasing improvement. Many times I have had to put comments at the top to refer to things inside of the list, when I really wanted to put comments inside the list to explain certain items.

    Much appreciated.

  3. #3
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    10,944

    Default

    Yeah. I wanted this:

    Code:
    static boolean [int] vgc_generic_turtle_choices = $ints[
        327,	// Puttin' it on Wax
        328,	// Never Break the Chain
        329,	// Don't Be Alarmed, Now
        941,	// This Turtle Rocks!
        942,	// Even Tamer Than Usual
        943,	// Really Sticking Her Neck Out
        944,	// More Like... Hurtle
        945,	// Musk! Musk! Musk!
        946,	// Armchair Quarterback
        957,	// It Came from Beneath the Sewer? Great!
        958,	// Close, but Yes Cigar
    ];
    But it didn't work, so I fixed it.
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

  4. #4
    Minion Bale's Avatar
    Join Date
    Jun 2008
    Posts
    13,222

    Default

    I knew exactly how you would use it as soon as I saw the revision. I'm not going to be using it as liberally as yourself, but I've wanted it many times.

  5. #5
    Senior Member ckb's Avatar
    Join Date
    Mar 2006
    Posts
    693

    Default

    Oh, double plus good. I have been wishing this worked like this for a while, and I am extra happy it does,

    (And in hindsight, I wonder why I did not ask for a feature request, but sometimes my mind does not work that way).

  6. #6
    Minion Bale's Avatar
    Join Date
    Jun 2008
    Posts
    13,222

    Default

    I wonder why I did not ask for a feature request
    Originally Posted by ckb View Post
    I can only suggest the same reason I didn't ask. It seemed like too small a matter over which to bother Veracity. Can't comment as I'd like? It almost sounds silly to need a workaround for commenting.
    If people like my scripts, please send me stuffed Hodgmen.
    Universal Recovery, OCD Inventory Control, CounterChecker, newLife, ChIT.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •