Newsgroups: comp.lang.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: Portable "asm" (Was: The D Programming Language) Message-ID: <1988Mar3.180424.403@utzoo.uucp> Keywords: portable D Organization: U of Toronto Zoology References: <11702@brl-adm.ARPA> <243@eagle_snax.UUCP> Date: Thu, 3 Mar 88 18:04:24 GMT > ... It is just as easy, since C requires a ; to end a statement, to > tell the compiler that until it sees ); to continue processing for the > assembler, and to have some escape mechanism for inserting ); into the > assembler statement... Have you never heard of string escapes? (If they don't work in asm()s despite the resemblance to strings, speak to your compiler implementor about this bug.) Why re-invent the wheel? Actually, my number one suggestion for D would be to avoid asm() entirely. My C compiler doesn't support it; oddly enough, I have never missed it. (It helps that Dennis Ritchie knew how to generate good local code.) -- Those who do not understand Unix are | Henry Spencer @ U of Toronto Zoology condemned to reinvent it, poorly. | {allegra,ihnp4,decvax,utai}!utzoo!henry