|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sun Dec 09, 2007 12:33 am
[2.16] Character before @ breaks DOT *Not Major* |
This isn't exactly a minor bug, but it is not quite major.
Enter this script in any session
Code: |
#ADDKEY a {b} {c};#SHOW '@a.b' @a.c |
When trying that you will notice that it decides the .b' should be treated as a seperate string and dumps the contents of @a followed by that other part. The second reference of @a.c though produces a null return because there is no c key. I can see that ' could be a valid key character and therefore should be checked under the DOT notation, but that doesn't seem to be what happens.
To demonstrate what really happens you have to try the further line
Code: |
#SHOW @a.b @a.b' '@a.b z@{a.b} |
Now you see that the problem is not actually the extra character at the end, it is one before the @. Looking at the compiled code for that second line we see that it definitely is not compiling the right way.
Code: |
0000 VARREF @a <?> (class untitled)
0020 STR 'b'
0032 DOT
0040 VARREF @a <?> (class untitled)
0060 STR 'b'
0072 DOT
0080 STR '''
0092 CONCAT
0096 STR ''' start of 3rd entry '@a.b
0108 VARREF @a <?> (class untitled)
0128 CONCAT
0132 STR '.b'
0144 CONCAT
0148 STR 'z'
0160 VARREF a.b <?> (class untitled)
0180 CONCAT
0184 CMD show (4) |
Final line the only one that comes close to making it look more serious.
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Mon Dec 10, 2007 3:55 am |
Confirmed.
|
|
_________________ Asati di tempari! |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Dec 11, 2007 6:38 pm |
Added to bug list.
|
|
|
|
|
|