🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #41553

Re: [slrn] kill_subject_this_group macro

#41553
From: John E. Davis
Date: Wed, 17 Jun 1998 00:00
32 lines
1783 bytes
On 17 Jun 1998 13:17:03 GMT, Dirk Bernhardt <krid+usenet+@comnets.rwth-aachen.de>
wrote:
>I guessed that the `+' isn't defined for characters and/or strings, so I
>changed your example

You are using an older version of slrn based upon the an obsolete
version of the slang library.  1.x versions of the library support
string concatenation via the `+' operator, e.g.,

    a = "hello";  b = "world"; a = a + b;
    a = "hello";  b = "world"; a += b;
    a = "hello";  b = "world"; a = strcat (a, b);

all result in the same value for `a'.  However, unlike `strcat', the
`+' operator also works with arrays:

    variable names = ["Larry", "Curly", "Moe"];
    variable hello_names, i;
    
    hello_names = "hello " + names;
    
    for (i = 0; i < 3; i++) message (hello_names[i]);
    
If you write macros, then you should upgrade to the latest version of
slang because of all the improvements in the interpreter.  There are
things that can be done in slang 1.0 that are impossible in 0.99-XX
such as linked lists and arrays of function pointers.

--John

Technical Details
Message-ID: <slrn6ofreb.k28.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: <6m6o1m$24a$1@umrk.comnets.rwth-aachen.de> <slrn6oeg76.i4h.davis@mygir.davis.net> <6m8fkf$sv$1@umrk.comnets.rwth-aachen.de>

Show Full Headers
Complete Article Headers
Message-ID: <slrn6ofreb.k28.davis@aluche.mit.edu>
Subject: Re: [slrn] kill_subject_this_group macro
Date: Wed, 17 Jun 1998 00:00:00 +0000
From: davis@space.mit.edu (John E. Davis)
References: <6m6o1m$24a$1@umrk.comnets.rwth-aachen.de> <slrn6oeg76.i4h.davis@mygir.davis.net> <6m8fkf$sv$1@umrk.comnets.rwth-aachen.de>
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: 363559216
Reply-To: davis@space.mit.edu
Organization: Center for Space Research
Newsgroups: news.software.readers