From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,2afd440a210c7fb0 X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,df8a3dc583bf1f5f X-Google-Attributes: gid1164f8,public X-Google-Thread: 1014db,6bdc5c27a0dec527 X-Google-Attributes: gid1014db,public From: peter@baileynm.com (Peter da Silva) Subject: Re: Compaq prefers Alpha over Merced! BUT OF COURSE, ALPHA * Date: 1998/09/09 Message-ID: <6t6br9$fsl@web.nmti.com>#1/1 X-Deja-AN: 389448290 References: <0095000017115526000002L062*@MHS> <6t4cui$hfu@espresso.cafe.net> <6t4h4d$mo4$1@nntp.ucs.ubc.ca> Organization: Bailey Network Management Newsgroups: comp.os.vms,comp.sys.dec,comp.lang.c Forth symbol strings are a feature of the PDP-11 instruction set, too: LOOP: MOVB (R1)+,(R2)+ BLE LOOP ;may be terminated by high bit set or nul Forth counted strings are a feature of C: type("string", sizeof "string"-1); And the PDP-11: BNE R3,END LOOP: MOVB (R1)+,(R2)+ DSZ R3, LOOP OK, like, C string constants bias it slightly towards nul-terminated strings, but not anything like the way strings in higher level languages do. And having two indications available for the string length (the result of sizeof and the terminator) means you can go either way easily. From experience in other languages that have NO alternative to a standard string format, or which don't give you ANY clues as to the length of a string if you don't provide your own terminator (can you say PL/M?), this teeny bias is like nothing. -- In hoc signo hack, Peter da Silva `-_-' "If Microsoft don't think you need it, it's not there and there's no 'U` way to include it yourself." -- Geoff Lane, a.s.r.