Article View: news.software.readers
Article #56594Re: [slrn] howto update counter in hook?
From: John E. Davis
Date: Sun, 09 Jan 2000 00:00
Date: Sun, 09 Jan 2000 00:00
17 lines
1535 bytes
1535 bytes
On 8 Jan 2000 23:38:10 GMT, Rejo Zenger <rejo@sisterray.xs4all.nl>
wrote:
> define _time ();
> define post_hook ()
> {
> set_string_variable ("username", sprintf ("rejo+f%d", _time ()));
> }
The version of slang that you are using does not support the _time
intrinsic. What you are doing above is defining a function called
_time that does nothing and then you are using it as if it returns an
integer. My advice is to upgrade to the latest version of slang
(1.3.10) and then omit the `define _time ();' line.
--John
Technical Details
Message-ID:
<slrn87gc68.tln.davis@aluche.mit.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn87a8om.16h.rejo.f0001nim@sisterray.xs4all.nl> <slrn87aa5f.nas.davis@aluche.mit.edu> <slrn87bbp0.15s.rejo@sisterray.xs4all.nl> <slrn87c6pj.1bn.tststs@starflower.tststs.ddns.org> <slrn87di3e.qtm.davis@aluche.mit.edu> <slrn87dte2.13a.rejo@sisterray.xs4all.nl> <slrn87f64r.sh9.davis@aluche.mit.edu> <slrn87fij2.4dm.rejo@sisterray.xs4all.nl>Show Full Headers
Complete Article Headers
Message-ID: <slrn87gc68.tln.davis@aluche.mit.edu> Subject: Re: [slrn] howto update counter in hook? Date: Sun, 09 Jan 2000 00:00:00 +0000 From: davis@space.mit.edu (John E. Davis) References: <slrn87a8om.16h.rejo.f0001nim@sisterray.xs4all.nl> <slrn87aa5f.nas.davis@aluche.mit.edu> <slrn87bbp0.15s.rejo@sisterray.xs4all.nl> <slrn87c6pj.1bn.tststs@starflower.tststs.ddns.org> <slrn87di3e.qtm.davis@aluche.mit.edu> <slrn87dte2.13a.rejo@sisterray.xs4all.nl> <slrn87f64r.sh9.davis@aluche.mit.edu> <slrn87fij2.4dm.rejo@sisterray.xs4all.nl> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 570258974 X-Trace: dreaderd 947400906 22871 18.75.2.45 Organization: Center for Space Research User-Agent: slrn/0.9.6.2 (Linux) Reply-To: davis@space.mit.edu Newsgroups: news.software.readers