Discussion:
A bug in TADS 3? Failure to defaultReport() after double quotes.
(too old to reply)
Johann 'Myrkraverk' Oskarsson
2021-01-31 18:25:36 UTC
Permalink
Dear r.a.if,

I've written about this before, in


https://intfiction.org/t/bug-in-tads-how-would-i-edit-a-method-in-tads-3-and-still-retain-the-previous-behaviour/49214/2

Basically, I was trying to model a near sighted person who bends over
to look at/examine the floor.

My first attemt was

modify Floor // [1]
basicExamine() {
"You bend over to see the floor.";
inherited();
}
;

which gives me this, in game.
x floor
You bend over to see the floor.

It doesn't display the inherited method; I thought that was not working
at all. But it does work. This for, instance

modify Floor // [2]
basicExamine() {
//"You bend over to see the floor.";
inherited();
}
;

shows
x floor
You see nothing unusual about the floor.

And when I step through [1] I eventually get to

modify RoomPart
desc() { defaultReport(&nothingUnusualAboutMsg, self); }
;

but it doesn't display anything if I have previously printed text
with double quotes. Why is that? Is this a bug in TADS 3?

How can I confirm I'm dealing with a bug? I am using TADS 3.1.3, build
Win121. Do other intpreters/compilers behave differently? Can I easily
try any on Windows?

The TADS bug database is gone, so I don't even know who or where to ask.
--
Johann | email: invalid -> com | www.myrkraverk.com/blog/
I'm not from the Internet, I just work there. | twitter: @myrkraverk
Andy Leighton
2021-02-01 15:52:28 UTC
Permalink
On Sun, 31 Jan 2021 18:25:36 +0000,
Post by Johann 'Myrkraverk' Oskarsson
Dear r.a.if,
I've written about this before, in
https://intfiction.org/t/bug-in-tads-how-would-i-edit-a-method-in-tads-3-and-still-retain-the-previous-behaviour/49214/2
The response about how defaultReport works on intfiction seems reasonable.
Post by Johann 'Myrkraverk' Oskarsson
but it doesn't display anything if I have previously printed text
with double quotes. Why is that? Is this a bug in TADS 3?
Doesn't sound like a bug to me.
--
Andy Leighton => ***@azaal.plus.com
"We demand rigidly defined areas of doubt and uncertainty!"
- Douglas Adams
Johann 'Myrkraverk' Oskarsson
2021-02-02 17:12:05 UTC
Permalink
Post by Andy Leighton
On Sun, 31 Jan 2021 18:25:36 +0000,
Post by Johann 'Myrkraverk' Oskarsson
Dear r.a.if,
I've written about this before, in
https://intfiction.org/t/bug-in-tads-how-would-i-edit-a-method-in-tads-3-and-still-retain-the-previous-behaviour/49214/2
The response about how defaultReport works on intfiction seems reasonable.
Post by Johann 'Myrkraverk' Oskarsson
but it doesn't display anything if I have previously printed text
with double quotes. Why is that? Is this a bug in TADS 3?
Doesn't sound like a bug to me.
Yes. Seems like an "expected behaviour" but I wasn't expecting it.
--
Johann | email: invalid -> com | www.myrkraverk.com/blog/
I'm not from the Internet, I just work there. | twitter: @myrkraverk
Loading...