Shout out to D at cppcon, when talkign about ranges.
Ola Fosheim Grøstad via Digitalmars-d
digitalmars-d at puremagic.com
Mon Oct 5 12:09:39 PDT 2015
On Saturday, 3 October 2015 at 08:58:26 UTC, Manu wrote:
> My strategy has been to backport D ideas into C++ over the past
> year
> since my last failed attempt to get D into my office, and this
> has
> been an AGONISING and extremely time consuming process.
> I have slices, ranges (as best I can), delegates, and my code is
> generally D-ish.
What do you need delegates for when you have flexible
function-object lambdas?
Microsoft GSL have array_view for slicing and transferring views
of arrays/memory to functions. It supports fixed sized slices (so
you don't transfer length) and multi dimensional slices). A bit
rough, but usable:
https://github.com/Microsoft/GSL/blob/master/tests/array_view_tests.cpp
More information about the Digitalmars-d
mailing list