What is "dual-context" ?

SrMordred patric.dexheimer at gmail.com
Fri Sep 13 13:02:13 UTC 2019


On Friday, 13 September 2019 at 04:23:47 UTC, Paul Backus wrote:
> On Friday, 13 September 2019 at 02:49:33 UTC, SrMordred wrote:
>> [...]
>
> "Dual context" is the compiler feature that allows you to pass 
> delegates as template arguments to member functions. For a long 
> time, limitations in the frontend made this impossible [1]. It 
> was recently fixed in dmd [2], but the fix hasn't made it into 
> ldc yet [3], so code that takes advantage of this feature is 
> currently dmd-only.
>
> [...]

Nice!, Thanks for the explanation and workaround :)


More information about the Digitalmars-d-learn mailing list