Aug 18, 2014 at 7:33am UTC
The first code must work perfectly, but the second will not work.
Aceix.
Aug 18, 2014 at 7:36am UTC
@Aceix
Thanks for the reply, am I able to write a value to an integer in a separate namespace like I am trying to do in the 2nd code?
Aug 18, 2014 at 7:40am UTC
example::5
doesn't make sense. I guess you mean example::pers
. If so, then it will work.
Aug 18, 2014 at 7:46am UTC
@Peter87
yeah sorry that was a typo, but you're right it works, I don't what I was doing earlier but that was my first time giving it a go and I was sure I was doing something wrong.
Thanks guys :)
Aug 18, 2014 at 8:13am UTC
@OP
To give pers a value, it can be done this way: example::pers=5;
Aceix.