🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.acorn.tech
Article #125

Re: New Language/Compiler (ideas wanted)

#125
From: Gavin Flower
Date: Fri, 14 Aug 1992 04:23
36 lines
1842 bytes
>orion@grun.is (Halfdan Ingvarsson) writes:
>
>
>>Hiya folks...
>
>>  Erm. I was thinking of writing a (sort of :) compiler using
>>my own language (a weirdo mixture of C, Pascal etc.. ) and I
>>am getting a little short of ideas. 
[...]
>>So.. If anyone has some cool ideas or something dreamthings they'd like to
>>see in a compiler I'd be glad to hear from them.
[...]

A number of years ago, someone suggested a "comfrom", to match a
"goto".  When it was first mentioned, it was as a joke.  However, the
more I thought about it, the more it appealed...

The idea is that both ends of the goto are labeled.  This has several
advantages:-
 
(1) At the target label, the "comefrom" clearly identifies the places
from which the current label can be reached, and just how many places.

(2) Also it will help to discourage indiscriminant use of the
"dreaded goto", without preventing its use in "appropiate" contexts.

(3) This would give the compiler more scope for picking up errors.



Gavin
-- 
Tomorrow's Society                              | flower_g@kosmos.wcc.govt.nz
    Depends on                                   ----------------------------
Today's Children  - help us raise them properly! 
*******  These comments have no known correlation with dept. policy!  *******
Technical Details
Message-ID: <BsyHIG.GMu@comp.vuw.ac.nz>
Path: arc1-ca.pugleaf.net!sparky!uunet!comp.vuw.ac.nz!gavin
References: <1195@grun.is> <1992Aug13.130618.18871@odin.diku.dk>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.acorn.tech
Path: arc1-ca.pugleaf.net!sparky!uunet!comp.vuw.ac.nz!gavin
From: Gavin.Flower@comp.vuw.ac.nz (Gavin Flower)
Subject: Re: New Language/Compiler (ideas wanted)
Nntp-Posting-Host: debretts.comp.vuw.ac.nz
Message-ID: <BsyHIG.GMu@comp.vuw.ac.nz>
Organization: Dept. of Comp. Sci., Victoria Uni. of Wellington, New Zealand.
Keywords: Compiler/Language
Sender: news@comp.vuw.ac.nz (News Admin)
References: <1195@grun.is> <1992Aug13.130618.18871@odin.diku.dk>
Date: Fri, 14 Aug 1992 04:23:04 GMT
Lines: 36