From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,acb50cdf95d3e13c X-Google-Attributes: gid103376,public From: bobduff@world.std.com (Robert A Duff) Subject: Re: Extending A Generic Signature Package Date: 1997/03/22 Message-ID: #1/1 X-Deja-AN: 227533448 References: <5gkv23INN3rn@thalamus.cis.ohio-state.edu> <5gn90o$gm1@sutton.cs.columbia.edu> <5gtvbv$1nj@pandora.cs.utwente.nl> Organization: The World Public Access UNIX, Brookline, MA Newsgroups: comp.lang.ada Date: 1997-03-22T00:00:00+00:00 List-Id: In article , Brian Rogoff wrote: > What if the objects are small, and there are very many of them? >Example: your signatures are of numeric types which are the elements of > matrices in a numerical linear algebra package. One or two > pointers per object is too much. It's really just *one* pointer -- I don't of any implementation that uses two, and I don't know any reason why it would want to (at least, not as the default implementation of tagged types). I agree that even just one pointer is too much in the case above. It would be nice if it were possible to implement tagged types without storing a tag in every object. It is *almost* possible to do that. The problem is that all tagged parameters are aliased, so the tag needs to be stored. The only way around that I can see would be to do some global (link time) analysis of the program. - Bob