Do sorted ranges have any special properties?
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Tue Jul 27 13:17:11 PDT 2010
Tomek Sowiński wrote:
> Andrei Alexandrescu wrote:
>
>>> I really don't see how you would do that in a generic way... Even taking
>>> into account that predicates return a very simple value (bool) and that
>>> they terminate (well, the input range's one was used to sort it),
>>> that's akin to determining if two unknown functions produce equal values.
>> Yah; it would help somehow if there was a way to get the body of a
>> function as a void[]. The address already exists, we need the sizeof.
>
> Isn't dereferencing function pointers illegal?
We need that too :o).
Andrei
More information about the Digitalmars-d
mailing list