Results 1 to 4 of 4

Thread: What is the difference between := and =

  1. #1
    Join Date
    Jul 2007
    Location
    Massachusetts
    Posts
    896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default What is the difference between := and =

    title says it all, which one declares the value and which one is comparing

    if you know c++, which one means == and which one means =


    P.S. cant search, too short lol

  2. #2
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    := is declaring and = is comparing.

  3. #3
    Join Date
    Jul 2007
    Location
    Massachusetts
    Posts
    896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    kk got it, thanks, lol thats hard to remember, considering in C++ = is declaring and == is comparing

  4. #4
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Think of it this way: '=' is 'equal to' and ':' is 'set'.

    x:=1; //set x equal to 1

    if x=1 then // if x is equal to 1 then

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Difference between exit and break
    By Macrosoft in forum OSR Help
    Replies: 5
    Last Post: 10-28-2007, 05:42 PM
  2. Difference between two functions?
    By Giga in forum OSR Help
    Replies: 8
    Last Post: 07-04-2007, 04:58 AM
  3. The difference between a pass (F) and a distinction (A)
    By Distort in forum The Bashing Club / BBQ Pit
    Replies: 7
    Last Post: 06-23-2007, 09:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •