Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • deferring evaluation

    Hello,

    Is deferred evaluation possible with either local or globals, i.e.:

    Code:
    global a "`b'+1"
    local b=1
    di $a
    should display "2" if deferred evaluation was possible, here `b'+1 seems to be evaluated at the time the global is defined.

    Thank you

  • #2
    I think I found the answer to my question, as shown below, let me know if this is correct:

    Code:
    local b="\`a'+1"
    local a=1
    di "`=`b''"
    2

    Comment


    • #3
      Yep!

      Comment

      Working...
      X