[PATCH] shared dpointer for duchain
Andreas Pakulat
apaku at gmx.de
Mon Dec 17 22:17:36 UTC 2007
On 17.12.07 03:01:08, David Nolden wrote:
> On Monday 17 December 2007 00:28:16 Andreas Pakulat wrote:
> > Same question about the definition pointer of a declaration. Can that
> > pointer be just copied from the rhs-dpointer as well?
>
> Because a declaration and definition usually have a strict 1-1 relationship, a
> clone should have no declaration set at all(so zero). This is also how it's
> done now. It's best to exactly resembe all these behaviors from the current
> code, after all it's working, and it's a fragile structure.
As you can see I finally found all difference in initialisation order
and behaviour and now duchain works and uses a shared dpointer. I'm
going for the typesystem next.
Howevre I'd like to know: Is there any chance to make duchain a bit less
fragile? I know this might be undo-able and is probably at least hard
due to the multi-threading issues, but I guess somebody starting with
this and getting the order of things wrong would appreciate it if it
wouldn't simply break down in 1000 small pieces on him :) Without a good
hint as to why it falls apart.
Andreas
--
You will live a long, healthy, happy life and make bags of money.
More information about the KDevelop-devel
mailing list