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
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. Now I'm sure to be NIL

Now I'm sure to be NIL

Scheduled Pinned Locked Moved The Weird and The Wonderful
salescode-review
5 Posts 5 Posters 0 Views 1 Watching
  • 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.
  • C Offline
    C Offline
    Christian Vogt
    wrote on last edited by
    #1

    Found due a code review at a big, big customer ... it's production code if (object = nil) then begin object := NIL; end;

    Reallife is only for those people that cannot find friends in internet

    R B C B 4 Replies Last reply
    0
    • C Christian Vogt

      Found due a code review at a big, big customer ... it's production code if (object = nil) then begin object := NIL; end;

      Reallife is only for those people that cannot find friends in internet

      R Offline
      R Offline
      RugbyLeague
      wrote on last edited by
      #2

      Maybe objects in that language need to be shouted at in order to get the message.

      1 Reply Last reply
      0
      • C Christian Vogt

        Found due a code review at a big, big customer ... it's production code if (object = nil) then begin object := NIL; end;

        Reallife is only for those people that cannot find friends in internet

        B Offline
        B Offline
        Bernhard Hiller
        wrote on last edited by
        #3

        Perhaps the original programmer was not so sure whether nil = NIL or not...

        1 Reply Last reply
        0
        • C Christian Vogt

          Found due a code review at a big, big customer ... it's production code if (object = nil) then begin object := NIL; end;

          Reallife is only for those people that cannot find friends in internet

          C Offline
          C Offline
          Camilo Sanchez
          wrote on last edited by
          #4

          Do you hear me nil?? you are nil!!! always remember it

          1 Reply Last reply
          0
          • C Christian Vogt

            Found due a code review at a big, big customer ... it's production code if (object = nil) then begin object := NIL; end;

            Reallife is only for those people that cannot find friends in internet

            B Offline
            B Offline
            BillW33
            wrote on last edited by
            #5

            At least is doesn't do anything harmful ;)

            Just because the code works, it doesn't mean that it is good code.

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


            • Login

            • Don't have an account? Register

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