• (nodebb)

    length4_frist

    Not at all sure what this piece of code is about. Is length4 an array of ranges? is range(3, 1) legal? I was assuming that the parameters were the two end points of the range. Or is range(x, y) some library function that applies to all collections, even ranges. That would make length4[5]->range(...) make more sense.

  • Tinkle (unregistered)

    Work with code like this and you deserve a raise. /j

  • JPJ (unregistered)

    Go forth and sin no more.

    So we should use only cos() in the future?

  • (nodebb) in reply to jeremypnet

    I'd generally think that length4[5]->range(0, 3) suggests that either length4[5]->range is a function pointer or length4[5] is a pointer to an object with a member function called range that takes two numbers as arguments. (It's implied to be C++, so the second interpretation is possible.)

  • Argle (unregistered)

    I'm confused. Do I cease sinning if I use Go or Forth?

  • Hmmmm 🤨 (unregistered)

    Not only arrays, but arrays of arrays; length4[5]->range(0, 3) seems to imply that there are at least 6 arrays of length 4 contained within length4 and this range is for the first 3 elements of the sixth 4-length array. This definitely needs to get rewritten into structs while someone there still understands it.

  • Alan Scrivener (unregistered)

    From the title I thought it was going to hold a NULL.

  • Greg (unregistered) in reply to Hmmmm 🤨

    arrays in c++ don't have a range method, so they either subclassed it or it's their own struct or class. No arguments against the need for refactoring though

  • Officer Johnny Holzkopf (unregistered) in reply to Argle

    Go Forth && multiply (⋅,×).

  • (nodebb)

    If the submitter hadn't told us this was fresh C++ written as a one-time use "script", I'd have guessed that it started life in FORTRAN IV and been ported at least once, maybe 3 times, before it landed in C++ land.

    Addendum 2026-09-23 08:49: Said another way, you can write FORTRAN in any language. ;)

Leave a comment on “The John Cage Variable”

Log In or post as a guest

Replying to comment #704610:

« Return to Article