ch-ch-changes
Max Samukha
samukha at voliacable.com.removethis
Wed Jan 28 06:25:22 PST 2009
On Wed, 28 Jan 2009 06:01:29 -0800, Andrei Alexandrescu
<SeeWebsiteForEmail at erdani.org> wrote:
>The thing is, passing by alias allows you a host of options:
>
>* string for short functions
>* function name
>* delegate literal
>* delegate object (there's a bug in the compiler related to that, that
>Walter knows how to fix)
Does that mean that we'll be able to do this:
struct S
{
bool foo(int a, int b)
{
return a > b;
}
}
sort!(&S().foo)(a);
?
>* some struct object that implements opCall()
>
More information about the Digitalmars-d
mailing list