NEWTON

NEWTON


Popular tags

    Cairo: What is the difference between let and tempvar?

    Asked

    4 months ago

    5

    views


    0

    I am trying to get a better understanding of what the difference is between these two and when to use which

    This question was originally posted on Triality

      cairocairo-lang

    1 answers

    0

    'Let' effectively takes whatever is on the right side of the equals sign and replaces the left side with that. So let x = p + q + r actually will have x refer back to p + q + r every time x is accessed in the future.

    'Tempvar' stores the intermediate value of the right side of the equation to the temporary variable on the left. So tempvar x = p + q + r (where p =1, q = 2, r = 3) will actually have 6 store the value of 6.

    This answer was originally posted on Triality

    answered

    4 months ago

    Your answer

    NEWTON

    NEWTON