On 11/22/2013 02:39 AM, Leo Simons wrote:
> That's basically what Bert's code does already (if it looks like an at-code, 
> it's probably an at-code, if it looks like a number, it's probably an index, 
> etc). I'm just continuing on with that pattern and tune it a bit during any 
> adl-path-to-xpath assistance.
The word "probably" indicates that it is not safe.

No programming-language/compiler allow a name of something to start with 
a number, and certainly not, be a number.
So it is very common practice to guess if a combination of characters is 
a number, and if it is, it cannot be a name.

Thus, the probability if something is an index of an array (always a 
number) or a name/atcode is 100%.

Bert

(PS: The comma to add an index inside the square brackets of an atcode 
only works when there is an atcode.
So this is not always the case. The square-bracket notation of an index 
always is possible.)

Reply via email to