Heh...

This is a discussion on Heh... within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I'm not sure if this would go into the windows board or the general board, but anyways... Why in the ...

  1. #1
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    1,690

    Heh...

    I'm not sure if this would go into the windows board or the general board, but anyways... Why in the world is there a '|' symbol when it's identicle to '+'?
    A class that doesn't overload all operators just isn't finished yet. -- SmugCeePlusPlusWeenie
    A year spent in artificial intelligence is enough to make one believe in God. -- Alan J. Perlis

  2. #2
    Registered User
    Join Date
    Jul 2006
    Posts
    162
    they don't look identical to me. one is a long narrow beam, and the other is a small cross. very clear difference.

  3. #3
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,274
    Quote Originally Posted by simpleid View Post
    they don't look identical to me. one is a long narrow beam, and the other is a small cross. very clear difference.
    Let me guess, you did something like:

    Code:
    1 | 2 | 16
    And found that the result was 19 and therefore assumed that '|' is the same as addition?

  4. #4
    Registered User
    Join Date
    Jul 2006
    Posts
    162
    what?! it's a joke... about the symbols '|' and '+'... look at them as a symbol, they are not identical. i have -no- clue as to what you're talking about brewbuck.
    Last edited by simpleid; 08-16-2007 at 05:00 PM.

  5. #5
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    Pointless topic, no? So what's the punchline?

  6. #6
    Registered User
    Join Date
    Jul 2006
    Posts
    162
    Pointless topic, no? So what's the punchline?
    Bam! :-d
    Cha-Ching!

    (lol damn it, why doesn't ctrl+c work on these forums? i always have to right-click-copy)

  7. #7
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,274
    Quote Originally Posted by simpleid View Post
    what?! it's a joke... about the symbols '|' and '+'... look at them as a symbol, they are not identical. i have -no- clue as to what you're talking about brewbuck.
    I was assuming the person actually meant something serious by the question.

  8. #8
    Registered User
    Join Date
    Jul 2006
    Posts
    162
    brewbuck, i was the one that was joking, not him.
    Last edited by simpleid; 08-16-2007 at 05:11 PM.

  9. #9
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    1,690
    >> I was assuming the person actually meant something serious by the question.
    I did.

    >> i think it's time for me to go home, finally off work! wooo~! this thread should just be deleted, lol.
    Actually, you should deleted.

    Also, I notied there is another duplicate: '&~' = '-'
    A class that doesn't overload all operators just isn't finished yet. -- SmugCeePlusPlusWeenie
    A year spent in artificial intelligence is enough to make one believe in God. -- Alan J. Perlis

  10. #10
    Registered User
    Join Date
    Jul 2006
    Posts
    162
    yarin, my best guess, there are two sets of symbols for instructions to manipulate information, those used in the decimal system through out history in mathematics, and those designed to mimic logic gates in math/engineering.

    it doesn't have to do with the fact that they overlooked duplicates or anything.

    you'll find an equivalent logical operation for a whole lot of things.
    Last edited by simpleid; 08-16-2007 at 05:14 PM.

  11. #11
    Registered User
    Join Date
    Jan 2005
    Posts
    7,344
    They don't do the same thing, so they aren't duplicates.

  12. #12
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    1,690
    Okay, I know quite well what '+' & '-' do. So please enlighten me on what '|' & '&~' do.

    Ah ha! Simple's an editor.
    A class that doesn't overload all operators just isn't finished yet. -- SmugCeePlusPlusWeenie
    A year spent in artificial intelligence is enough to make one believe in God. -- Alan J. Perlis

  13. #13
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

  14. #14
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    1,690
    >> http://www.eskimo.com/~scs/cclass/int/sx4ab.html

    Ohh, sting... So how come when I replace all my narrow beams with pluses, everything still works the same?
    A class that doesn't overload all operators just isn't finished yet. -- SmugCeePlusPlusWeenie
    A year spent in artificial intelligence is enough to make one believe in God. -- Alan J. Perlis

  15. #15
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    1,690
    BTW: Nevermind my last say, and good link, thanks.
    A class that doesn't overload all operators just isn't finished yet. -- SmugCeePlusPlusWeenie
    A year spent in artificial intelligence is enough to make one believe in God. -- Alan J. Perlis

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Heh...
    By Shamino in forum Game Programming
    Replies: 19
    Last Post: 04-04-2006, 08:16 AM
  2. Help with my function (Heh)
    By phatsam in forum C Programming
    Replies: 9
    Last Post: 03-23-2006, 01:26 PM
  3. How long have you guys been working with C/C++??
    By Lurker in forum A Brief History of Cprogramming.com
    Replies: 24
    Last Post: 08-01-2003, 04:41 PM
  4. Dual Monitor question heh
    By RoD in forum Tech Board
    Replies: 2
    Last Post: 07-11-2003, 02:18 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21