Feature Request: Change the delegate type to void[] data instead of void *ptr.
downs
default_357-line at yahoo.de
Wed Oct 3 22:12:15 PDT 2007
Gregor Richards wrote:
> Downside #2: Calculating that range requires at best n pointer lookups
> where n is the depth of the delegate. Creating delegates right now is free.
>
> - Gregor Richards
I believe that most delegates have a depth of one, so this isn't much of
a problem. Alternatively, just set the array pointer to null initially
and have the compiler fill it in when requested.
--downs
More information about the Digitalmars-d
mailing list