Bobinas P4G
  • Login
  • Public

    • Public
    • Groups
    • Popular
    • People

Conversation

Notices

  1. mike (mike@micro.mkp.ca)'s status on Saturday, 05-Nov-2022 19:41:56 UTC mike mike

    #Godot 4 beta 4 warns you when you call a function that returns a value and discard the value. Which is nice, that’s a bad code smell for sure and it reminds me to add old-fashioned error handling since we don’t have exceptions. Except! Most of the functions I am calling in the system library that have return values I am discarding do not document what the return value is! Like Array.resize returns an int, and I’m going to guess that’s the new size of the array, which maybe isn’t what you asked for in some undocumented circumstances. But what the heck is does the return value of int Signal.connect() mean?! The number of already connected signals? An undocumented error code? Who knows! Gotta check the source.

    In conversation Saturday, 05-Nov-2022 19:41:56 UTC from micro.mkp.ca permalink

    Feeds

    • Activity Streams
    • RSS 2.0
    • Atom
    • Help
    • About
    • FAQ
    • Privacy
    • Source
    • Version
    • Contact

    Bobinas P4G is a social network. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

    Creative Commons Attribution 3.0 All Bobinas P4G content and data are available under the Creative Commons Attribution 3.0 license.