Whilst trying to use Base$Bag.ContainsElement (ESI/GTM
4.1.0.7), I was encountering errors that made no sense.
On line 15 of this method, I found the following line:
I G(T%Item)="" D Quit
Clearly this should be
I $G(T%Item)="" D Quit
Fixing this got rid of the on-compilation warning "The
Variable G has been coerced to a Temporary Variable"
But it did not get rid of a warning about the instance
variable I%IC which was referenced but never defined.
I have fixed both of these errors, though the last one is
indeed not a critical warning, it's nice not to have any
warnings at all, and many methods within this class
reference I%IC. I have provided the following description
for the variable, which I think is accurate:
"A builtin array used to count the instances of a given
element in the bag."
Attached you will find updated variable definition and
ContainsElement method exports for the class.
Updated Variable definition for Base$Bag including I%IC
Supersedes last ContainsElement patch
Logged In: YES
user_id=172059
Ooops! It seems the Base$Bag.ContainsElement export I
provided did not include the fix. Here you go, this should be
the real thing....
Logged In: YES
user_id=84471
Deleted erroneous fix to avoid confusion.
Logged In: YES
user_id=41717
Oddly Version 6, dated 05/30/2003 (On my development
system) is already correct. Terry can you please confirm if
this is an issue on your system...