Click here to Skip to main content
15,889,651 members

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
NewsMozilla tries to do Java as it should have been – with a WASI spec for all devices, computers, operating systems Pin
Sean Ewington22-Apr-19 9:31
staffSean Ewington22-Apr-19 9:31 
NewsModern C++ Won't Save Us Pin
Sean Ewington22-Apr-19 9:16
staffSean Ewington22-Apr-19 9:16 
GeneralRe: Modern C++ Won't Save Us Pin
Nelek22-Apr-19 10:00
protectorNelek22-Apr-19 10:00 
GeneralRe: Modern C++ Won't Save Us Pin
TheGreatAndPowerfulOz22-Apr-19 11:30
TheGreatAndPowerfulOz22-Apr-19 11:30 
NewsSocial media influencer plotted to take internet domain at gunpoint. It didn't end well Pin
Sean Ewington22-Apr-19 9:01
staffSean Ewington22-Apr-19 9:01 
GeneralRe: Social media influencer plotted to take internet domain at gunpoint. It didn't end well Pin
Marc Clifton22-Apr-19 9:26
mvaMarc Clifton22-Apr-19 9:26 
NewsYou can now download the source code for all Infocom text adventure classics Pin
Sean Ewington22-Apr-19 8:46
staffSean Ewington22-Apr-19 8:46 
GeneralRe: You can now download the source code for all Infocom text adventure classics Pin
raddevus23-Apr-19 2:10
mvaraddevus23-Apr-19 2:10 
Here's some of the source from Zork (from nrooms.c):



C++
switch (ri - newrms + 1) {
	case 1:  goto L38000;
	case 2:  goto L39000;
	case 3:  goto L40000;
	case 4:  goto L41000;
	case 5:  goto L42000;
	case 6:  goto L43000;
	case 7:  goto L44000;
	case 8:  goto L45000;
	case 9:  goto L46000;
	case 10:  goto L47000;
	case 11:  goto L48000;
	case 12:  goto L49000;
	case 13:  goto L50000;
	case 14:  goto L51000;
	case 15:  goto L52000;
	case 16:  goto L53000;
	case 17:  goto L54000;
	case 18:  goto L55000;
	case 19:  goto L56000;
	case 20:  goto L57000;
	case 21:  goto L58000;
	case 22:  goto L59000;
	case 23:  goto L60000;
}


A bit further down:

C++
/* R47--	MIRROR EYE ROOM */

L47000:
    if (prsvec_1.prsa != vindex_1.lookw) {
	return ret_val;
    }
/* 						!LOOK? */
    i = 704;
/* 						!ASSUME BEAM STOP. */
    i__1 = objcts_1.olnt;
    for (j = 1; j <= i__1; ++j) {
	if (qhere_(j, play_1.here) && j != oindex_1.rbeam) {
	    goto L47200;
}


All you gotta do is follow the bouncing goto! Laugh | :laugh:
So now I know why when I started learning to program people were saying:

Eschew goto!!! Roll eyes | :rolleyes:

Well, I'm sure there was some reason for this type of coding which is lost to history.
It made it look as if there was no way to call a subroutine (function) or something.
Maybe this is related to the code being ported from another system which did not have a way to call functions??

modified 23-Apr-19 8:27am.

GeneralRe: You can now download the source code for all Infocom text adventure classics Pin
Dan Neely23-Apr-19 2:36
Dan Neely23-Apr-19 2:36 
GeneralRe: You can now download the source code for all Infocom text adventure classics Pin
Nelek23-Apr-19 23:48
protectorNelek23-Apr-19 23:48 
NewsReport: 26 States Now Ban or Restrict Community Broadband Pin
Sean Ewington22-Apr-19 8:46
staffSean Ewington22-Apr-19 8:46 
NewsVendors must start adding physical on/off switches to devices that can spy on us Pin
Sean Ewington22-Apr-19 8:46
staffSean Ewington22-Apr-19 8:46 
GeneralRe: Vendors must start adding physical on/off switches to devices that can spy on us Pin
j snooze22-Apr-19 11:17
j snooze22-Apr-19 11:17 
GeneralRe: Vendors must start adding physical on/off switches to devices that can spy on us Pin
PeejayAdams22-Apr-19 22:25
PeejayAdams22-Apr-19 22:25 
GeneralRe: Vendors must start adding physical on/off switches to devices that can spy on us Pin
Richard Andrew x6423-Apr-19 12:24
professionalRichard Andrew x6423-Apr-19 12:24 
NewsMozilla relaunches open source IoT platform Project Things as WebThings Pin
Sean Ewington21-Apr-19 18:01
staffSean Ewington21-Apr-19 18:01 
NewsGoogle Flips The Switch On Its Next Big Money Maker: Maps Pin
Sean Ewington21-Apr-19 18:01
staffSean Ewington21-Apr-19 18:01 
NewsInside the fake Amazon review complex Pin
Sean Ewington21-Apr-19 18:01
staffSean Ewington21-Apr-19 18:01 
NewsJack Dorsey says it’s time to rethink the fundamental dynamics of Twitter Pin
Sean Ewington21-Apr-19 18:01
staffSean Ewington21-Apr-19 18:01 
GeneralRe: Jack Dorsey says it’s time to rethink the fundamental dynamics of Twitter Pin
Dominic Burford22-Apr-19 22:26
professionalDominic Burford22-Apr-19 22:26 
GeneralRe: Jack Dorsey says it’s time to rethink the fundamental dynamics of Twitter Pin
PeejayAdams22-Apr-19 23:18
PeejayAdams22-Apr-19 23:18 
GeneralRe: Jack Dorsey says it’s time to rethink the fundamental dynamics of Twitter Pin
Dominic Burford22-Apr-19 23:59
professionalDominic Burford22-Apr-19 23:59 
GeneralRe: Jack Dorsey says it’s time to rethink the fundamental dynamics of Twitter Pin
PeejayAdams23-Apr-19 0:06
PeejayAdams23-Apr-19 0:06 
GeneralRe: Jack Dorsey says it’s time to rethink the fundamental dynamics of Twitter Pin
Dominic Burford23-Apr-19 0:17
professionalDominic Burford23-Apr-19 0:17 
GeneralRe: Jack Dorsey says it’s time to rethink the fundamental dynamics of Twitter Pin
PeejayAdams23-Apr-19 0:42
PeejayAdams23-Apr-19 0:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.