[comp.sys.mac.hypercard] Hypercard 1.2 foundchunk bug

martin@home.csc.ti.com (Steven Martin) (05/17/88)

The problem is with "the foundchunk", "the found...", etc.

I can only recreate this bug under Multifinder! It appears to work
fine under Finder. Great, one more application that can't be used
under Multifinder.

Here is the scenario:

A script in stack "A"

go stack "b"
  repeat
    find whole foo
    put the result into tempa
    put the foundchunk into tempb
    ... do lots of other stuff
  end repeat
...

The problem is that on seemingly random occasions, tempb (i.e. the
foundchunk) will empty, even when the string has been found (tempa is
empty). Running the same example a second time will not duplicate the
error.  The bug makes a potentially great feature totally useless to
me.

Also, "the found..." functions always return empty when typed into the
message box.  This does not agree with the way they are described.
"The foundChunk returns a chunk expression that indicates where the
*most recent* Find command located its argument." There is no mention
of why this won't work from the message box.

Has anybody else run into these problems????

Steve Martin            USENET: {ctvax,im4u,texsun,rice}!ti-csl!martin
                        PHONE: (214)-995-5919, 404-1061
"When you've got a bug don't fix it.  Write another piece of code to
recognize that it's about to happen and head it off."  - Marvin Minsky


Steve Martin            USENET: {ctvax,im4u,texsun,rice}!ti-csl!martin
                        PHONE: (214)-995-5919, 404-1061
"When you've got a bug don't fix it.  Write another piece of code to
recognize that it's about to happen and head it off."  - Marvin Minsky