Why doesn't my definition compile?

Here we are:

To decide whether (S - a subject) is a-propos for (speaker - an object) if:
	repeat through the Table of Quiz Topics:
		if the subject entry is S and the interlocutor entry is speaker:
			decide yes;
	decide no;

Definition: a subject is a-propos if it is a-propos for the current interlocutor.

Current interlocutor is from Eric Eve’s Conversation Framework.

The compiler tells me:

→ You gave as a definition ‘a subject is a-propos if it is a-propos for
the current interlocutor’: but that condition makes no sense
to me, although the preamble to the definition was properly written. There
must be something wrong after ‘if’.

For the life of me I can’t see what I’m doing wrong here.

Is the “if” at the end there supposed to be there?

2 Likes

Yes, that was it. Thanks for spotting my mistake.

I teach software engineering and this is the kind of mistake I always catch my students making. How humbling :slight_smile:

2 Likes