Jonkman Microblog
  • Login
Show Navigation
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. spectrumgomas (spectrumgomas@mastodon.social)'s status on Tuesday, 09-Jan-2018 07:11:02 EST spectrumgomas spectrumgomas

    what happens in C implementation of Lua when we call # on a non-sequence? https://stackoverflow.com/questions/23590885/why-does-luas-length-operator-return-unexpected-values

    In conversation Tuesday, 09-Jan-2018 07:11:02 EST from mastodon.social permalink

    Attachments

    1. Invalid filename.
      Why does Lua's length (#) operator return unexpected values?
      Lua has the # operator to compute the "length" of a table being used as an array. I checked this operator and I am surprised. This is code, that I let run under Lua 5.2.3: t = {}; t[0] = 1; t[1]...
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.

Switch to desktop site layout.