Thank you! You are correct, a few of my procs will need to pass a parameter. I 
tried something like this:
    
    
    import macros
    
    proc test1() = echo "Hello"
    proc test2(i: int) = echo "World " & $i
    
    for p in [test1, test2]:
      if astToStr(p) == "test2":
        p(42)
      else:
        p()
    
    
    Run

But astToStr(p) returns "p". How do you check the variable name represented by 
p?

Reply via email to