Returning dynamic array from the function

Marco Cosentino via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jun 14 07:02:51 PDT 2014


Hi,
I'm new to D and stumbled upon this very interesting discussion.
My question now is:
can you provide an example of how to return a collection of
homogeneous elements whose size is not known at compile time (for
wich you would normally use a dynamic array) from a function?

Thanks,
Marco


More information about the Digitalmars-d-learn mailing list