🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #128097

Re: [slrn] Stack Underflow? Using Gnupg.

#128097
From: J.B. Nicholson-Owens
Date: Wed, 09 Jul 2003 05:00
26 lines
1824 bytes
[Followups set to alt.lang.s-lang where S-Lang discussions happen.]

Steven Schneider wrote:
> Btw, what exactly is a stack underflow error?

It happens when a function tries to pull a value off the stack and there
isn't a value to pull.

For example, consider this simple function call:

   blah (1, 2, 3);

pushes three values on the stack.  If blah() is defined as

   define blah (a, b, c, d) { ... }

then there will be a stack underflow because S-Lang wants to pull 4 values
(a, b, c, and d) off the stack to set those variables.  But the caller of
blah() only provided 3 values.  The way to fix this--change blah() or
somehow supply the missing value.

A stack overflow error, in case you're curious, is just the opposite--a
program is trying to push more values on the stack than the stack can hold.

Happy hacking.
Technical Details
Message-ID: <slrnbgnamp.c52.jbn@forestfield.org>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!fu-berlin.de!uni-berlin.de!forestfield.ORG!not-for-mail
References: <slrnbgmija.vsv.mail.2.galvanometer@orion.wss-ds.org> <slrnbgmuha.hm3.mail.2.galvanometer@orion.wss-ds.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrnbgnamp.c52.jbn@forestfield.org>
Subject: Re: [slrn] Stack Underflow? Using Gnupg.
Date: Wed, 09 Jul 2003 05:00:19 +0000
From: "J.B. Nicholson-Owens" <jbn@forestfield.org>
References: <slrnbgmija.vsv.mail.2.galvanometer@orion.wss-ds.org> <slrnbgmuha.hm3.mail.2.galvanometer@orion.wss-ds.org>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!fu-berlin.de!uni-berlin.de!forestfield.ORG!not-for-mail
Newsgroups: news.software.readers
Followup-To: alt.lang.s-lang
Organization: Forest Field OmniMedia
Lines: 25
NNTP-Posting-Host: forestfield.org (208.216.67.173)
X-Trace: fu-berlin.de 1057726819 5046970 208.216.67.173 (16 [35848])
Mail-Copies-To: nobody
User-Agent: slrn/0.9.7.4pl2 (GNU/Linux)