[go: up one dir, main page]

Menu

#97 Base$Bag.ContainsElement broken

v4.1
open
Core Model (79)
5
2012-09-19
2003-08-22
No

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.

Discussion

  • Eric Lambart

    Eric Lambart - 2003-08-22

    Updated Variable definition for Base$Bag including I%IC

     
  • Eric Lambart

    Eric Lambart - 2003-08-25

    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....

     
  • Terry L. Wiechmann

    Logged In: YES
    user_id=84471

    Deleted erroneous fix to avoid confusion.

     
  • Jerry Goodnough

    Jerry Goodnough - 2005-01-11

    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...

     

Log in to post a comment.