Re: [sv-bc] Built-in types are not packed arrays

From: Paul Graham <pgraham@cadence.com>
Date: Fri Sep 24 2004 - 13:47:19 PDT

> >byte. If you can index a byte, then why not a shortint or an int?
>
> A byte is a very special case, and not at all like 'shortint' and 'int'.

Would you agree that $dimensions(byte) == 1?

> As Steven points out, V2K made it legal to index into an 'integer'.
> But I think that was an unwise change. For example, in V2K, you
> don't even know how many bits there are in an 'integer', only that
> there are at least 32. Can you safely use an index greater than 32?

A good reason to allow the user to query $left(integer)!

Paul
Received on Fri Sep 24 13:47:25 2004

This archive was generated by hypermail 2.1.8 : Fri Sep 24 2004 - 13:47:29 PDT