Re: addle 0.1.0 - argument-dependent lookup for UFCS functions

2020-06-23 Thread Atwork via Digitalmars-d-announce
On Sunday, 21 June 2020 at 00:06:12 UTC, Paul Backus wrote: Are you tired of D's sane, straightforward scoping rules? Itching for a taste of that old-fashioned C++ madness? Well, itch no more: addle is here to help. addle is a tiny library that implements C++-style argument-dependent lookup (

Re: addle 0.1.0 - argument-dependent lookup for UFCS functions

2020-06-22 Thread Simen Kjærås via Digitalmars-d-announce
On Sunday, 21 June 2020 at 00:06:12 UTC, Paul Backus wrote: import addle; import std.range; // Import a type from another module import mylib: MyStruct; // Define range primitives for MyStruct bool empty(MyStruct a) { return false; } string front(MyStruct a) { return

Re: addle 0.1.0 - argument-dependent lookup for UFCS functions

2020-06-22 Thread Sebastiaan Koppe via Digitalmars-d-announce
On Sunday, 21 June 2020 at 00:06:12 UTC, Paul Backus wrote: Now available on Dub, by "popular demand"! Links: - Documentation: https://addle.dpldocs.info/addle.html - Dub: https://code.dlang.org/packages/addle - Github: https://github.com/pbackus/addle Cool. Thanks.

addle 0.1.0 - argument-dependent lookup for UFCS functions

2020-06-20 Thread Paul Backus via Digitalmars-d-announce
Are you tired of D's sane, straightforward scoping rules? Itching for a taste of that old-fashioned C++ madness? Well, itch no more: addle is here to help. addle is a tiny library that implements C++-style argument-dependent lookup (ADL) for D, on an opt-in basis. It lets you extend existing