Re: A question of programming technique in C

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ian Collins

    Re: A question of programming technique in C

    Nick Keighley wrote:
    On 4 Nov, 20:24, c...@tiac.net (Richard Harter) wrote:
    >>
    >I am going to throw in one curve ball. Our program will contain
    >references to created bobbles; we won't know where these are so
    >they can go stale when we delete bobbles. The code will need to
    >be able to detect that a reference has gone stale and deal with
    >it appropriately.
    >
    I think your design is broken at this point. This isn't a C
    problem you'd have exactly the same issues with C++ despite
    it's "machinary" .
    >
    Why? They could simply use reference counted smart pointers, like
    tr1::shared_ptr .

    --
    Ian Collins
Working...