Can opDollar support a jagged 2D array?

James Blachly james.blachly at
Fri Oct 2 17:24:04 UTC 2020

On 10/2/20 9:32 AM, Steven Schveighoffer wrote:
> This seems like an oversight. But it's not impossible.

Thank you Steve. Is there any chance that this mechanism will ever be 
revised? Presumably it would require a DIP.

> Just curry the information to the receiver. opDollar doesn't have to 
> return a size_t.

This is indeed pretty clever; I would not have ever though to have 
opDollar return a non-integral value. This again suggests the whole 
thing needs to be revised, but this will work for now -- thanks again!

More information about the Digitalmars-d-learn mailing list