Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!adm!MAILER%ALASKA.BITNET@CUNYVM.CUNY.EDU From: MAILER%ALASKA.BITNET@CUNYVM.CUNY.EDU Newsgroups: comp.lang.c Subject: Undelivered mail Message-ID: <12307@brl-adm.ARPA> Date: 12 Mar 88 14:40:06 GMT Sender: news@brl-adm.ARPA Lines: 45 Subject: Re: The D Programming Language [Non-Deliverable: User does not exist or has never logged on] Reply-To: Info-C@BRL.ARPA Received: From UWAVM(MAILER) by ALASKA with Jnet id 7644 for SXJVK@ALASKA; Sat, 12 Mar 88 04:05 AST Received: by UWAVM (Mailer X1.25) id 5225; Sat, 12 Mar 88 05:04:25 PST Date: Thu, 10 Mar 88 21:26:58 GMT Reply-To: Info-C@BRL.ARPA Sender: Info-C List From: "Stuart D. Gathman" Subject: Re: The D Programming Language Comments: To: info-c@brl-smoke.arpa To: Vic Kapella In article <700@l.cc.purdue.edu>, cik@l.cc.purdue.edu (Herman Rubin) writes: > but even for direct operators. For example, the infamous frexp function > in C should not have the syntax > y = frexp(x,&n); > but > y,n = frexp(x); > This would, for example, allow n to be in a register, which is probably > where it should be anyhow. > Another example would be to have > q,r = a///b; > where the quotient and remainder are simultaneously produced. Possibly Another example is string comparison. I use a string compare function that returns the index of the first different character. I also need the gt/lt/eq result. Fortunately, in this case it is easily computed by recomparing the chars at the index. This is another case of a double valued hardware primitive. (Available on all three of the architectures we use: Series/1, 80286, 68020.) -- Stuart D. Gathman <..!{vrdxhq|daitc}!bms-at!stuart>