🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c.moderated
Article #2214

Some questions on coding

#2214
From: Herman Rubin
Date: Fri, 08 Mar 1996 23:05
20 lines
1407 bytes
Two questions have arisen.  Both of these are in connection with
statement labels and gotos, which I know will irritate many; these
questions are raised in connection with certain types of programs
in which the use of goto-less code must be less efficient.

Question 1.  Is there a quick way of using a variable label?
The way it would be used is to identify the label to which one
wants to transfer, and then have some other place or places 
transfer to that point?  Transfers, loads, and stores take a
significant part of the running time of the algorithm, and
so something like setjmp and longjmp are to be avoided.

Question 2.  Is there a way of declaring "local", so that
labels in one block of a coding unit can be the same as
labels in another?  The labels are within the block only,
but the various blocks are connected with gotos, not calls.

-- 
Herman Rubin, Dept. of Statistics, Purdue Univ., West Lafayette IN47907-1399
hrubin@stat.purdue.edu	 Phone: (317)494-6054	FAX: (317)494-0558
Technical Details
Message-ID: <4hqef9$1oj@solutions.solon.com>
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
From: hrubin@stat.purdue.edu (Herman Rubin)
Newsgroups: comp.lang.c.moderated
Subject: Some questions on coding
Date: 8 Mar 1996 17:05:13 -0600
Organization: Purdue University Statistics Department
Sender: clc@solutions.solon.com
Approved: clc@solutions.solon.com
Message-ID: <4hqef9$1oj@solutions.solon.com>
NNTP-Posting-Host: solutions.solon.com