Array Lower Bounds

0ffh frank at frankhirsch.youknow.what.todo.net
Tue Dec 18 12:19:20 PST 2007


Bill Baxter wrote:
> It's not so niche I don't think.  It's pretty widely used in numerical 
> computing.  It's just a question of whether it's useful enough to 
> warrant the extra syntactical and memory baggage it would require.  I 
> think it would require all arrays to carry around a third value, no?

Yes, I also think it would, therefore growing the array record by 50%.
That doesn't sound very wholesome to me; I'd rather waive the feature
than suffer the added memory and runtime overhead.
We may hope that those who would compromise on their ressource usage
will at some future point of time be able to do so by using a dedicated
library array class or struct which implements this feature.

regards, frank


More information about the Digitalmars-d-learn mailing list