Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!tektronix!ogcvax!omsvax!hplabs!sri-unix!jbray@bbn-unix From: jbray%bbn-unix@sri-unix.UUCP Newsgroups: net.unix-wizards Subject: Re: strncpy()--why is this in unix-wizards? Message-ID: <5510@sri-arpa.UUCP> Date: Wed, 14-Sep-83 12:39:50 EDT Article-I.D.: sri-arpa.5510 Posted: Wed Sep 14 12:39:50 1983 Date-Received: Fri, 23-Sep-83 04:45:52 EDT Lines: 18 From: James Bray I would like to join a discussion of extensions to C if one should start. Here are some ideas that I have just had lying around in a file: Needs a "restart" construct to reenter a for loop (as for example when having slept in it and needing to completely recommence); Loops of all kinds, and perhaps all scopes, should be nameable. Break, continue, and the proposed restart could accept these labels as an optional argument: when used in this way, it would indicate that the desired action be performed on the given scope, with the default being as for the current usage; These are a couple of ideas which might help C to become a genuinely goto-less language. They should reduce or eliminate the need for "goto loop" and "goto out" which one sees so often in the kernel. --Jim Bray