NEWTON

NEWTON


Popular tags

    Immutable Memory in Cairo

    Asked

    4 months ago

    3

    views


    0

    Is memory immutable in Cairo? In what situations is it and in what situations is it not?

    This question was originally posted on Triality

      cairocairo-lang

    1 answers

    0

    Memory is always immutable in Cairo. You cannot overwrite a location in memory. When you initialize an array, you can use assert to write to a location in the memory array if nothing has been written there yet. Once you have asserted once, you cannot change the value in that memory address

    This answer was originally posted on Triality

    answered

    4 months ago

    Your answer

    NEWTON

    NEWTON