defining variables ??

new topic     » topic index » view thread      » older message » newer message

I have noticed that declaring a variables OUTSIDE of a procedure or
  function, I can do this:

  atom var1, var2
  var1 = 1
  var2 = 2
  atom var3
  var3 = 3

Declaring this same thing inside a procedure or function will cause an
error because of the intermixing of variable names and assigning of the
variables value

  procedure rout1( )
    atom var1, var2
    var1 = 1
    var2 = 2
    atom var3
    var3 = 3

  end procedure

Why doesn't this work the same way inside a procedure ?
Bernie

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu