Path: utzoo!attcan!uunet!sco!brianm
From: brianm@sco.COM (Brian Moffet)
Newsgroups: comp.lang.c
Subject: Re: Passing sizes of arrays without a separate argument for the length
Summary: Looks like BCPL to me.
Message-ID: <1304@scolex>
Date: 20 Sep 88 18:07:29 GMT
References: <8809191507.AA17512@ucbvax.Berkeley.EDU>
Reply-To: brianm@sco.COM (Brian Moffet)
Organization: The Santa Cruz Operation, Inc.
Lines: 14

In article <8809191507.AA17512@ucbvax.Berkeley.EDU> U23405@UICVM (Michael J. Steiner) writes:
>
>In other words, I had an idea of putting the maximum array dimension in
>the array itself. This should work with most arrays (since chars, floats,

From what I have seen of BCPL (working with the translations on the
Amiga OS) this is classified as a BSTRING.  The size of the string is
the first element (up to 256 chars) and the string follows.

All in all a good idea, but sometimes really confusing when you have
to bit-shift the pointers by 2 to use them in C.  (BCPL pointers are
in word addressing, not byte addressing ).

brian moffet