Learning With D

Ali Çehreli acehreli at yahoo.com
Sun May 22 19:46:14 PDT 2011


On 05/22/2011 04:36 PM, Daniel Gibson wrote:

> And I think http://www.youtube.com/watch?v=i49_SNt4yfk is a great video
> explaining pointers ;)

Yes, funny. :) But as some of the comments show, there are bad practices 
like not initializing the pointers. I wonder whether the person who 
wrote the accompanying code has experience with pointers. ;)

Also, the fact that the pointee is allocated with 'new' is adding 
confusion to the already confusing matter. Allocating by new is a 
lifetime issue and has nothing to do with being a pointee. It also makes 
one wonder whether the int should not be guarded by a smart pointer.

Ali


More information about the Digitalmars-d-announce mailing list