🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #234899

Re: My dysfunctional attemp

#234899
From: John E. Davis
Date: Sun, 02 Aug 2009 03:59
42 lines
3720 bytes
On Sun, 2 Aug 2009 02:42:56 +0000 (UTC), ShadowTek <ShadowTek@invalid.invalid>
wrote:
> *My* biggest problem with trying to learn s-lang by using the
> documentation was that there is a *lot* of stuff that is left out, as
> if the person is already supposed to know these things by being
> thoroughly familiar with C#. That means that in order to use s-lang to
> any great degree, you have to constantly consult C# documentation in
> parallel to s-lang's.

I am unfamiliar with C# so I am unable to comment on its resemblance
to slang.  Many open source interpeters such as slang make heavy use
of the C standard library and provide wrappers around those functions
in one form or another.  For this reason, it is helpful, but not
necessary, to be familiar with the C standard library.  For example,
in the code that I posted, I made use of a number of functions that
have C counterparts, including fopen, fgets, and strtok.  Despite the
similarity in name and function, the semantics can and often do
differ.  For instance, strtok returns an array of values whereas the C
version would require multiple function calls to achieve the same
result.  Hence in order to actually use such a function in a slang
script, it is necessary to look at the slang documentation for the
function.

Links to the slang documentation are available from
<http://www.jedsoft.org/slang/docs.html>.  The language itself is
documented at <http://www.jedsoft.org/slang/doc/html/slang.html>.  The
runtime library documentation is at
<http://www.jedsoft.org/slang/doc/html/slangfun.html>.  This is where
you will find documentation for getenv, strtok, etc.  And since you
are using the interpreter within the context of slrn, it is important
to read the documentation for the slrn intrinic functions at
<http://slrn.sourceforge.net/docs/slrnfuns.html>.

Feel free to ask slang questions pertaining to slrn on this newgroup
or on the slrn-users mailing list.  Generic slang question should go
to alt.lang.s-lang.

There is a learning curve, but I do not believe that the documentation
is a big part of it.  

Good luck,
--John
Technical Details
Message-ID: <slrnh7a3qm.b92.jed@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.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!newspeer.monmouth.com!newsswitch.lcs.mit.edu!micro-heart-of-gold.mit.edu!not-for-mail
References: <guhtt9$82j$1@news.motzarella.org> <slrnh0p4lk.9q2.catwheezel@ID-107770.user.individual.net> <slrnh6sm2b.be4.ShadowTek@desktop.localdomain> <20090729080451@usenet.piggo.com> <slrnh6v215.m8d.ShadowTek@desktop.localdomain> <20090729101510@usenet.piggo.com> <slrnh6vnoo.8ce.ShadowTek@desktop.localdomain> <slrnh73i74.imu.jed@aluche.mit.edu> <20090731083455@usenet.piggo.com> <slrnh749g4.qr1.usenet@news.piggo.com> <slrnh74t48.4ch.jed@aluche.mit.edu> <20090731235846@usenet.piggo.com> <slrnh769m0.nk4.jed@aluche.mit.edu> <slrnh796ag.n0g.ShadowTek@desktop.localdomain> <slrnh79e2l.3oi.jed@aluche.mit.edu> <slrnh79urj.623.ShadowTek@desktop.localdomain>

Show Full Headers
Complete Article Headers
Message-ID: <slrnh7a3qm.b92.jed@aluche.mit.edu>
Subject: Re: My dysfunctional attemp
Date: Sun, 02 Aug 2009 03:59:54 +0000
From: "John E. Davis" <jed@jedsoft.org>
References: <guhtt9$82j$1@news.motzarella.org> <slrnh0p4lk.9q2.catwheezel@ID-107770.user.individual.net> <slrnh6sm2b.be4.ShadowTek@desktop.localdomain> <20090729080451@usenet.piggo.com> <slrnh6v215.m8d.ShadowTek@desktop.localdomain> <20090729101510@usenet.piggo.com> <slrnh6vnoo.8ce.ShadowTek@desktop.localdomain> <slrnh73i74.imu.jed@aluche.mit.edu> <20090731083455@usenet.piggo.com> <slrnh749g4.qr1.usenet@news.piggo.com> <slrnh74t48.4ch.jed@aluche.mit.edu> <20090731235846@usenet.piggo.com> <slrnh769m0.nk4.jed@aluche.mit.edu> <slrnh796ag.n0g.ShadowTek@desktop.localdomain> <slrnh79e2l.3oi.jed@aluche.mit.edu> <slrnh79urj.623.ShadowTek@desktop.localdomain>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!newspeer.monmouth.com!newsswitch.lcs.mit.edu!micro-heart-of-gold.mit.edu!not-for-mail
Newsgroups: news.software.readers
Organization: MIT EECS ECF
Lines: 42
Reply-To: davis@space.mit.edu
NNTP-Posting-Host: aluche.mit.edu
X-Trace: micro-heart-of-gold.mit.edu 1249185594 83200 18.75.2.45 (2 Aug 2009
X-Complaints-To: usenet@micro-heart-of-gold.mit.edu
NNTP-Posting-Date: Sun, 2 Aug 2009 03:59:54 +0000 (UTC)
User-Agent: slrn/pre1.0.0-12 (Linux)