Opportunities for D

via Digitalmars-d digitalmars-d at puremagic.com
Tue Jul 8 22:34:14 PDT 2014


On Wednesday, 9 July 2014 at 04:50:39 UTC, Walter Bright wrote:
> The question doesn't make sense. What is a ref counted int?

 From the typecons documentation:

Example:
// A pair of an $(D int) and a $(D size_t) - the latter being the
// reference count - will be dynamically allocated
auto rc1 = RefCounted!int(5);


:-)


More information about the Digitalmars-d mailing list