Infinite Loop, two lines, no brackets

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • loveknot
    New Member
    • Sep 2011
    • 1

    Infinite Loop, two lines, no brackets

    Hi,

    Perhaps this is too easy to be any fun for all of you, but it's stupidly important to me, so any help, advice or ideas anyone can offer are greatly appreciated.

    I would like to have a ring engraved with C# code for an infinite loop for love. (For my C# developer guy's wedding band.)

    I can't use anything but letters and numbers. No symbols, no brackets, no slashes, etc, because it's being engraved in Morse code. I can use up to two lines.

    I am not a developer and speak no code, so please understand that you're dealing with an idiot.

    The only ideas I've been able to come up with on my own are:

    While True
    Love

    While 1
    Love

    Love
    goto Love

    or - resortig to VBA

    While Love
    Loop

    Here's hoping some kind person will save me from engraving something really lame on a wedding ring.
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    I like the first one, since you cannot use symbols.
    It also carries over into english, for people who dont understand code, it sounds like fortune cookie speak.
    "While true, love"

    Comment

    • GaryTexmo
      Recognized Expert Top Contributor
      • Jul 2009
      • 1501

      #3
      I like the while 1 loops, or while true... they are implied as infinite. If you put while love, it implies the variable love can change, which isn't the message you're trying to send at all :D

      It's too bad you can't use symbols as it makes proper C# syntax impossible. Personally I think...

      Code:
      While True
        Love
      ... might be your best option. You could even give it a parameter... I think that's still valid VB syntax. Back when I used to program in QB you didn't need the brackets, the function signature was just "<function name> <param 1>, <param 2>, ..., <param n>" so maybe that's still valid? Anyway, if so, you could do...

      Code:
      While True
        Love <your fiance's name here>
      ... for a bit of extra geek factor.

      Cool idea, by the way :) And congrats!!

      Comment

      Working...