Re: [GD-General] Compile times
Brought to you by:
vexxed72
From: Jesse J. <jes...@mi...> - 2002-12-16 11:41:53
|
At 3:12 AM +0100 12/16/02, Ignacio Casta=F1o wrote: >Jesse Jones wrote: >> Hmm, I've seen smart pointers used on several projects and they have >> never caused any problems. What sort of "ugly things" are you >> referring to? > >I've seen ugly things when used wrong. For example, when using ciclyc >references. I allowed weak references to avoid cycles, but ended using them >in places where I shoudn't and the end I had the feeling of not having too >much control over the life of the objects. They definitely increase >complexity, at least when you have never used them :-) > >After that, I switched to a handle based resource manager, much more robust >than the previous code. You have total control over the life of the objects >and if you mix the handle with a reference count, you detect invalid >references inmediatly. I have some thoughts on how this can be done, but I'd like to hear some more details on how you've implemented this. :-) -- Jesse |