Heap allocation and internal pointers

Dicebot public at dicebot.lv
Mon Jan 20 04:27:39 PST 2014


Quick dlang.org investigation has found this:

http://dlang.org/phobos/std_exception.html#.pointsTo

Note:
Evaluating pointsTo(x, x) checks whether x has internal pointers. 
This should only be done as an assertive test, as the language is 
free to assume objects don't have internal pointers (TDPL 
7.1.3.5).

I guess you may want to check mentioned TDPL part ;)


More information about the Digitalmars-d mailing list