Newsgroups: rec.arts.int-fiction
Path: gmd.de!xlink.net!scsing.switch.ch!swidir.switch.ch!univ-lyon1.fr!ghost.dsi.unimi.it!batcomputer!nic.hookup.net!paladin.american.edu!howland.reston.ans.net!vixen.cso.uiuc.edu!newsrelay.iastate.edu!destroyer!nntp.cs.ubc.ca!newsserver.sfu.ca!sfu.ca!neilg
From: neilg@fraser.sfu.ca (Neil K. Guy)
Subject: Re: TADS Coding problem
Message-ID: <neilg.760081358@sfu.ca>
Sender: news@sfu.ca (seymour news)
Organization: Simon Fraser University, Burnaby, B.C., Canada
References: <2ihr10$prl@nntp2.Stanford.EDU> <2ikmm0$aga@nntp2.Stanford.EDU>
Date: Tue, 1 Feb 1994 05:42:38 GMT
Lines: 30

jreese@leland.Stanford.EDU (james reese) writes:

>I've tried several different variations (<<v.sdesc>>, say(v.sdesc),
>and v.sdesc), but none seems to work. Hints/help/outright code would
>be greatly appreciated. Has anyone else run into this problem with
>v. 2.1.2.2 on a Mac?

 Well, if you want some code, give this a try:

parseAskobj: function( v, ... )
{
	"What do you want to "; v.sdesc;
	
	if ( argcount = 2 )
	{
		local p := getarg( 2 );
		" it ";
		if ( p )
			p.sdesc;
		else
			"to" ;
	}
	"?";
}

 Works fine on my Mac Plus under TADS 2.1.2.whatever. Actually, I
rewrite it slightly in my game to avoid the heinous grammatical crime
of ending a sentence with a preposition, but this works also.

 - Neil K. (n_k_guy@sfu.ca)
