🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #34827

Re: [SLRN] delete_thread (was Re: slrn questions)

#34827
From: John E. Davis
Date: Thu, 03 Jul 1997 00:00
41 lines
2347 bytes
On 3 Jul 1997 15:32:23 GMT, Jan Hlavacek <lahvak+n@math.ohio-state.edu>
wrote:
>On 3 Jul 1997 14:58:46 GMT, Hubert Canon <Hubert.Canon@irisa.fr> wrote:
>>Does this work ?
>>define reload_macros () {
>>  evalfile(".slrn.sl");
>>}

  Only do this if you have reload_macros in a different file that will
not be evaluated when .slrn.sl is evaluated.  That is, use:

    interpret ".slrn.sl"
    interpret ".reload.sl"
    
where .reload.sl consists of:

   define reload_macros ()
   {
      () = evalfile (".slrn.sl");
   }

That is, never redefine a function while the function is executing.  A
future version of slang will correctly handle this situation but the
current version does not, which may result in a core dump.

>Exactly.  By the way,  John,  if you are reading this,  does slrn overrides
>the slang evalfile function?  It doesn't seem to return a value.

  0.9.4.2 redefines the function to search along the macro path.  The
previous versions did not do this, which means that
`evalfile(".slrn.sl")' will only load .slrn.sl in the current directory.

My advice is to either use absolute pathnames with evalfile, or to
wait until 0.9.4.2 is released (this weekend).
-- 
John E. Davis                   Center for Space Research/AXAF Science Center
617-258-8119                    MIT 37-662c, Cambridge, MA 02139
http://space.mit.edu/~davis

Technical Details
Message-ID: <slrn5rnl9g.2kp.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-mail
References: <slrn5rcll8.97.gottfriedsw@lowrider.quantum.de> <slrn5rebpj.86.jbn@pop-a-wheelie.midwest.net> <slrn5reoas.kpb.lahvak+n@math.mps.ohio-state.edu> <slrn5rg7kc.9h1.gottfriedsw@lowrider.quantum.de> <slrn5rn8ur.vo.Hubert.Canon@hetre.irisa.fr> <slrn5rne07.52c.jbn@pop-a-wheelie.midwest.net> <slrn5rnfh6.vo.Hubert.Canon@hetre.irisa.fr> <slrn5rnhg7.36l.lahvak+n@math.mps.ohio-state.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrn5rnl9g.2kp.davis@aluche.mit.edu>
Subject: Re: [SLRN] delete_thread (was Re: slrn questions)
Date: Thu, 03 Jul 1997 00:00:00 +0000
From: davis@space.mit.edu (John E. Davis)
References: <slrn5rcll8.97.gottfriedsw@lowrider.quantum.de> <slrn5rebpj.86.jbn@pop-a-wheelie.midwest.net> <slrn5reoas.kpb.lahvak+n@math.mps.ohio-state.edu> <slrn5rg7kc.9h1.gottfriedsw@lowrider.quantum.de> <slrn5rn8ur.vo.Hubert.Canon@hetre.irisa.fr> <slrn5rne07.52c.jbn@pop-a-wheelie.midwest.net> <slrn5rnfh6.vo.Hubert.Canon@hetre.irisa.fr> <slrn5rnhg7.36l.lahvak+n@math.mps.ohio-state.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-mail
X-Deja-AN: 254868070
Organization: Center for Space Research
Reply-To: davis@space.mit.edu
Newsgroups: news.software.readers