Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Programmer Humor
  3. Alternative uses of __LINE__

Alternative uses of __LINE__

Scheduled Pinned Locked Moved Programmer Humor
programmerhumor
4 Posts 4 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z This user is from outside of this forum
    Z This user is from outside of this forum
    [email protected]
    wrote last edited by
    #1
    This post did not contain any content.
    killeronthecorner@lemmy.worldK B 2 Replies Last reply
    30
    • Z [email protected]
      This post did not contain any content.
      killeronthecorner@lemmy.worldK This user is from outside of this forum
      killeronthecorner@lemmy.worldK This user is from outside of this forum
      [email protected]
      wrote last edited by
      #2

      This is why we can't have nice things

      1 Reply Last reply
      5
      • Z [email protected]
        This post did not contain any content.
        B This user is from outside of this forum
        B This user is from outside of this forum
        [email protected]
        wrote last edited by
        #3

        It must be c# because of foreach but the arguments aren't right. I pasted into an online c# and it errored out. Maybe the screen capped cursor is blocking something?

        dfyx@lemmy.helios42.deD 1 Reply Last reply
        1
        • B [email protected]

          It must be c# because of foreach but the arguments aren't right. I pasted into an online c# and it errored out. Maybe the screen capped cursor is blocking something?

          dfyx@lemmy.helios42.deD This user is from outside of this forum
          dfyx@lemmy.helios42.deD This user is from outside of this forum
          [email protected]
          wrote last edited by [email protected]
          #4

          Definitely not C#. Wrong syntax for main, wrong syntax for foreach (C# has foreach (var i in someCollection) and what even is this method call syntax with =?

          Edit: I dug around the website. It's D. I'm still confused about the method call syntax though. Usually, D uses parentheses like most other C-style languages. Must be some weird syntax where you can call methods like property setters which was useful for this particular code golf challenge.

          1 Reply Last reply
          6
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups