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. The Lounge
  3. Verity asks an interesting question. [modified]

Verity asks an interesting question. [modified]

Scheduled Pinned Locked Moved The Lounge
question
42 Posts 18 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.
  • D Dalek Dave

    Sub Life()
    Dim Breaths = 100,000,000
    Dim Live As Bool.True
    Do Until Live = False
    Breaths = Breaths - 1
    If Breaths <1 then Live = False
    Loop
    End Sub

    ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] Trolls[^]

    H Offline
    H Offline
    Henry Minute
    wrote on last edited by
    #12

    Wow! Short life. Using 15 bpm, that is.

    Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.

    D 1 Reply Last reply
    0
    • H Henry Minute

      Wow! Short life. Using 15 bpm, that is.

      Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.

      D Offline
      D Offline
      Dalek Dave
      wrote on last edited by
      #13

      I have assessed it on current hardware limitations.

      ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] Trolls[^]

      H 1 Reply Last reply
      0
      • D Dalek Dave

        Sub Life()
        Dim Breaths = 100,000,000
        Dim Live As Bool.True
        Do Until Live = False
        Breaths = Breaths - 1
        If Breaths <1 then Live = False
        Loop
        End Sub

        ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] Trolls[^]

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #14

        You should add try and catch to handle a LifeThreadAbort exception, just in case you do not quite make it to 100000000 breaths.

        "Dark the dark side is. Very dark..." - Yoda ---
        "Shut up, Yoda, and just make yourself another toast." - Obi Wan Kenobi

        D 1 Reply Last reply
        0
        • D Dalek Dave

          I have assessed it on current hardware limitations.

          ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] Trolls[^]

          H Offline
          H Offline
          Henry Minute
          wrote on last edited by
          #15

          I hear ya!

          Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.

          1 Reply Last reply
          0
          • L Lost User

            You should add try and catch to handle a LifeThreadAbort exception, just in case you do not quite make it to 100000000 breaths.

            "Dark the dark side is. Very dark..." - Yoda ---
            "Shut up, Yoda, and just make yourself another toast." - Obi Wan Kenobi

            D Offline
            D Offline
            Dalek Dave
            wrote on last edited by
            #16

            That exists only for Buddhists. They get the Redo From Start option.

            ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] Trolls[^]

            L 1 Reply Last reply
            0
            • D Dalek Dave

              That exists only for Buddhists. They get the Redo From Start option.

              ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] Trolls[^]

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #17

              Yeah, go on without any exception handling and look how far you get.

              "Dark the dark side is. Very dark..." - Yoda ---
              "Shut up, Yoda, and just make yourself another toast." - Obi Wan Kenobi

              1 Reply Last reply
              0
              • H Henry Minute

                Which programming language to use on your tombstone?[^]. At the moment I am thinking Forth but am still trying to work out some suitable code. [Edit] I think :Goodbye 42 Emit 8 Emit CR ; .Goodbye [/Edit] What would be your choice?

                Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.

                modified on Monday, August 22, 2011 9:55 AM

                K Offline
                K Offline
                Keith Barrow
                wrote on last edited by
                #18

                c++ must be the most poignant:

                ~Keith();

                It even looks bleak somehow. Though this might be good (c#):

                for (var what in death.sleep)
                {
                what = "dreams";
                }

                Sort of a cross between Lawrence of Arabia and Dilbert.[^]
                -Or-
                A Dead ringer for Kate Winslett[^]

                L R 2 Replies Last reply
                0
                • H Henry Minute

                  Which programming language to use on your tombstone?[^]. At the moment I am thinking Forth but am still trying to work out some suitable code. [Edit] I think :Goodbye 42 Emit 8 Emit CR ; .Goodbye [/Edit] What would be your choice?

                  Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.

                  modified on Monday, August 22, 2011 9:55 AM

                  C Offline
                  C Offline
                  clientSurfer
                  wrote on last edited by
                  #19

                  rm -rf killall -9

                  "... having only that moment finished a vigorous game of Wiff-Waff and eaten a tartiflet." - Henry Minute

                  1 Reply Last reply
                  0
                  • H Henry Minute

                    Which programming language to use on your tombstone?[^]. At the moment I am thinking Forth but am still trying to work out some suitable code. [Edit] I think :Goodbye 42 Emit 8 Emit CR ; .Goodbye [/Edit] What would be your choice?

                    Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.

                    modified on Monday, August 22, 2011 9:55 AM

                    Mike HankeyM Offline
                    Mike HankeyM Offline
                    Mike Hankey
                    wrote on last edited by
                    #20
                        ldi       r2,1
                    

                    eatSleepAndExpendBodilyFluids:
                    add r1,r2
                    cp r1,r0 ;Where r0 is undefined
                    brne eatSleepAndExpendBodilyFluids
                    break

                    A girl phoned me and said, 'Come on over. There's nobody home.' I went over. Nobody was home! Rodney Dangerfield

                    1 Reply Last reply
                    0
                    • K Keith Barrow

                      c++ must be the most poignant:

                      ~Keith();

                      It even looks bleak somehow. Though this might be good (c#):

                      for (var what in death.sleep)
                      {
                      what = "dreams";
                      }

                      Sort of a cross between Lawrence of Arabia and Dilbert.[^]
                      -Or-
                      A Dead ringer for Kate Winslett[^]

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #21

                      On a gravestone they usually have the birthdate and the date of death, so you should have a constructor as well.

                      "Dark the dark side is. Very dark..." - Yoda ---
                      "Shut up, Yoda, and just make yourself another toast." - Obi Wan Kenobi

                      1 Reply Last reply
                      0
                      • H Henry Minute

                        Ah, but in which language? I mean, that looks very much like a C++ ; to me.

                        Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.

                        B Offline
                        B Offline
                        Bassam Abdul Baki
                        wrote on last edited by
                        #22

                        Emoticon.

                        Web - BM - RSS - Math - LinkedIn

                        1 Reply Last reply
                        0
                        • H Henry Minute

                          Which programming language to use on your tombstone?[^]. At the moment I am thinking Forth but am still trying to work out some suitable code. [Edit] I think :Goodbye 42 Emit 8 Emit CR ; .Goodbye [/Edit] What would be your choice?

                          Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.

                          modified on Monday, August 22, 2011 9:55 AM

                          L Offline
                          L Offline
                          Lost User
                          wrote on last edited by
                          #23

                          Wow. So far nobody has mentioned any bacon!

                          "Dark the dark side is. Very dark..." - Yoda ---
                          "Shut up, Yoda, and just make yourself another toast." - Obi Wan Kenobi

                          H 1 Reply Last reply
                          0
                          • H Henry Minute

                            Which programming language to use on your tombstone?[^]. At the moment I am thinking Forth but am still trying to work out some suitable code. [Edit] I think :Goodbye 42 Emit 8 Emit CR ; .Goodbye [/Edit] What would be your choice?

                            Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.

                            modified on Monday, August 22, 2011 9:55 AM

                            I Offline
                            I Offline
                            Ian Shlasko
                            wrote on last edited by
                            #24

                            Any *nix-based language will do...

                            Segmentation Fault (core dumped)

                            Proud to have finally moved to the A-Ark. Which one are you in?
                            Author of the Guardians Saga (Sci-Fi/Fantasy novels)

                            1 Reply Last reply
                            0
                            • L Lost User

                              Wow. So far nobody has mentioned any bacon!

                              "Dark the dark side is. Very dark..." - Yoda ---
                              "Shut up, Yoda, and just make yourself another toast." - Obi Wan Kenobi

                              H Offline
                              H Offline
                              Henry Minute
                              wrote on last edited by
                              #25

                              Just for you. A BACON tombstone.[^]

                              Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.

                              L 1 Reply Last reply
                              0
                              • H Henry Minute

                                Which programming language to use on your tombstone?[^]. At the moment I am thinking Forth but am still trying to work out some suitable code. [Edit] I think :Goodbye 42 Emit 8 Emit CR ; .Goodbye [/Edit] What would be your choice?

                                Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.

                                modified on Monday, August 22, 2011 9:55 AM

                                S Offline
                                S Offline
                                S Houghtelin
                                wrote on last edited by
                                #26

                                I chose VB because it just won't die... :) If Gone And Name <> forgotten Then Dead = True

                                It was broke, so I fixed it.

                                1 Reply Last reply
                                0
                                • H Henry Minute

                                  Which programming language to use on your tombstone?[^]. At the moment I am thinking Forth but am still trying to work out some suitable code. [Edit] I think :Goodbye 42 Emit 8 Emit CR ; .Goodbye [/Edit] What would be your choice?

                                  Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.

                                  modified on Monday, August 22, 2011 9:55 AM

                                  D Offline
                                  D Offline
                                  Dave Kreskowiak
                                  wrote on last edited by
                                  #27

                                  DaveKreskowiak.Dispose()

                                  A guide to posting questions on CodeProject[^]
                                  Dave Kreskowiak

                                  H 1 Reply Last reply
                                  0
                                  • D Dave Kreskowiak

                                    DaveKreskowiak.Dispose()

                                    A guide to posting questions on CodeProject[^]
                                    Dave Kreskowiak

                                    H Offline
                                    H Offline
                                    Henry Minute
                                    wrote on last edited by
                                    #28

                                    I hope that you don't have any leaks. :)

                                    Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.

                                    1 Reply Last reply
                                    0
                                    • H Henry Minute

                                      Which programming language to use on your tombstone?[^]. At the moment I am thinking Forth but am still trying to work out some suitable code. [Edit] I think :Goodbye 42 Emit 8 Emit CR ; .Goodbye [/Edit] What would be your choice?

                                      Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.

                                      modified on Monday, August 22, 2011 9:55 AM

                                      D Offline
                                      D Offline
                                      Dalek Dave
                                      wrote on last edited by
                                      #29

                                      What about the important question of Inheritance?

                                      ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] Trolls[^]

                                      H 1 Reply Last reply
                                      0
                                      • H Henry Minute

                                        Just for you. A BACON tombstone.[^]

                                        Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.

                                        L Offline
                                        L Offline
                                        Lost User
                                        wrote on last edited by
                                        #30

                                        Not exactly as I would like to have mine inscripted :)

                                        "Dark the dark side is. Very dark..." - Yoda ---
                                        "Shut up, Yoda, and just make yourself another toast." - Obi Wan Kenobi

                                        1 Reply Last reply
                                        0
                                        • D Dalek Dave

                                          What about the important question of Inheritance?

                                          ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] Trolls[^]

                                          H Offline
                                          H Offline
                                          Henry Minute
                                          wrote on last edited by
                                          #31

                                          Well in my case I think that the garbage collector will clean up.

                                          Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.

                                          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