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 From: Monty Brandenberg Subject: Re: Compaq prefers Alpha over Merced! BUT OF COURSE, ALPHA * Date: 1998/08/28 Message-ID: <35E72100.C28D23DB@ne.mediaone.net>#1/1 X-Deja-AN: 385760660 Content-Transfer-Encoding: 7bit References: <0095000017115526000002L062*@MHS> <6rukse$3q0$1@usenet01.srv.cis.pitt.edu> <6s17hi$2g8@post.gsfc.nasa.gov> <6s4o0o$q31@news1.panix.com> <6s6i11$jla$1@vixen.cso.uiuc.edu> Content-Type: text/plain; charset=us-ascii Organization: MCB, Inc. Mime-Version: 1.0 Reply-To: mcbinc@ne.mediaone.net.MAPS.SPAM Newsgroups: comp.os.vms,comp.sys.dec TERENCE MURPHY wrote: > > How do you propose I do this? Say I write a program: > > main() { char *hello = "Hello"; pascal_format_puts(hello); } > > How do I get the compiler to generate the hello string as a pascal > string? When using C, you have to do it with conventions and code discipline. On C/VMS, for example, the dsc$ structures are used to describe the various safe string types for use with the native VMS runtime libraries. But using them does rely on discipline. It doesn't provide true type safety. If you want that, you need to move to C++ or another strongly-typed language. -- Monty Brandenberg, Software Consultant MCB, Inc. mcbinc@ne.mediaone.net.MAPS.SPAM P.O. Box 426188 mcbinc@world.std.com.MAPS.SPAM Cambridge, MA 02142 617.864.6907