Newsgroups: rec.arts.int-fiction
Subject: Re: [TADS] newbie: overriding functions
From: argus@see.the.sig (T Raymond)
References: <a6u4ve$9fo$1@helle.btinternet.com>
Message-ID: <Xns91D2D0FBDE8ATjR12537@209.25.157.130>
User-Agent: Xnews/4.05.11
NNTP-Posting-Host: 66.218.7.51
Date: 15 Mar 2002 19:11:22 -0600
X-Trace: corp.newsgroups.com 1016241082 66.218.7.51 (15 Mar 2002 19:11:22 -0600)
Lines: 29
X-Comments: This message was posted through Newsfeeds.com
X-Comments2: IMPORTANT: Newsfeeds.com does not condone, nor support,  spam or any illegal or copyrighted postings.
X-Comments3: IMPORTANT: Under NO circumstances will postings containing illegal or copyrighted material through this service be tolerated!!
X-Report: Please report illegal or inappropriate use to <abuse@newsfeeds.com>
X-Abuse-Info: Please be sure to forward a copy of ALL headers, INCLUDING the body (DO NOT SEND ATTACHMENTS)
Organization: Newsfeeds.com http://www.newsfeeds.com 80,000+ UNCENSORED Newsgroups.
Path: news.duke.edu!newsgate.duke.edu!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!ihug.co.nz!out.nntp.be!propagator-SanJose!in.nntp.be!corp.newsgroups.com!not-for-mail
Xref: news.duke.edu rec.arts.int-fiction:101812

Equinox Tetrachloride was overheard typing about:

> How does one override functions in TADS?

If you are taking it out entirely, you would probably use replace.

> I tried to override pardon() (for when the user enters a blank
> line) using the following code, which failed because the function
> was already defined. Adding the modify keyword didn't seem to
> help.

pardon and several other functions are defined in the std.t file.
These things are meant to be customized. General, one makes a copy
(mystd, or whatever) of std.t and changes it directly, then #include
your mystd instead of the defualt std file. Or you could make heavy
use of rmodify and replace functions.

HTH

Tom
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Tom Raymond                        af956 AT osfnDOTorg
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----
