atom question

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

if I have many atoms:

atom a1,a2,a3,a4,a5

and want all set to a value, 2 or example

do I have to do it one at a time :
a1=2
a2=2
.
.
.
This is very time consuming.

it would be useful if this could be used:
a1=a2=a3=a4=a5=2
or even better:
atom a1=a2=a3=a4=a5=2

One way is also if I use another type which automatically assigns value,
which must be assigned often (0,1):

global type atom0(atom a)
 a=0
 return true
end type

but this apparently slows down the program?

Is there any other way of quickly assigning same value to many atoms?

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

Search



Quick Links

User menu

Not signed in.

Misc Menu