Path: utzoo!mnetor!uunet!husc6!necntc!ima!haddock!karl From: karl@haddock.ISC.COM (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: The D Programming Language Message-ID: <2864@haddock.ISC.COM> Date: 3 Mar 88 19:25:02 GMT References: <11702@brl-adm.ARPA> <243@eagle_snax.UUCP> <2245@geac.UUCP> <2718@mmintl.UUCP> <1988Feb25.202237.8688@utzoo.uucp> <7359@brl-smoke.ARPA> <2809@haddock.ISC.COM> <7395@brl-smoke.ARPA> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Boston Lines: 15 Summary: statement == expression In article <7395@brl-smoke.ARPA> gwyn@brl.arpa (Doug Gwyn) writes: >In article <2809@haddock.ISC.COM> karl@haddock.ima.isc.com (Karl Heuer) writes: >>Yes, let's make *all* statements return values ... > >I once designed a language like this for a special purpose. It worked, but >you need to figure out what to do about declarations. What values should >they return? When in doubt, make it a void expression. Personally, I think even strcpy() should be void. Alternately, if only one object can be declared per statement, it could return that object (if it was initialized) or its address (assuming it has one). Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint