Page 1 of 1

[Structures] Using of variables with declaration suffix

Posted: Thu Jun 02, 2005 8:37 pm
by benny
Hi,

this is not a big deal actually ... however I wonder why I cannot use something
like this :

Code: Select all

Structure test
  x.l
  y.l
EndStructure

aTest.test

aTest\x = 10
aTest\y = 20

;CANNOT USE THE FOLLOWING
;GIVES "GARBAGE AT END OF LINE"
;
;aTest\x.l = 10
;aTest\y.l = 20
The reason why I want to use variables always with the suffix is that this
is my personal kind of variable naming convention. So that I always
know for example that the variable x stands for a long value.

I know that there are a lot of other ways like naming x.l as lgX
(i.e. longX) and so on.

Nevertheless, is there any reason why it isn't possible with variable of a
structure to have its suffix added (e.g. aTest\x.l ) :?: Or do I miss
something here :roll:

Posted: Sat Jun 04, 2005 11:49 am
by Trond
I don't know. I suggested it in the suggestions forum some days ago. I would like it too.