← Back to index
|
Original Bugzilla link
Bug 17325 – alias this not tried on template instantiation failure
Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-04-14T01:11:56Z
Last change time
2024-12-13T18:52:02Z
Assigned to
No Owner
Creator
Bolpat
Moved to GitHub: dmd#17792 →
Comments
Comment #0
by qs.il.paperinik — 2017-04-14T01:11:56Z
struct Array { int[] arr; alias arr this; } void main() { import std.algorithm : sort, SwapStrategy; Array a; sort(a); // fails sort!("a < b", SwapStrategy.unstable, int[])(a); // works sort(a.arr); // works } This is a major limitation for writing wrappers.
Comment #1
by robert.schadek — 2024-12-13T18:52:02Z
THIS ISSUE HAS BEEN MOVED TO GITHUB
https://github.com/dlang/dmd/issues/17792
DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB