ForwardDeclaration usage

Milian Wolff mail at milianw.de
Thu Feb 12 21:55:39 UTC 2009


Am Wednesday 11 February 2009 schrieb Milian Wolff:
> On Wednesday 11 February 2009, David nolden wrote:
> > Am Mittwoch 11 Februar 2009 14:15:24 schrieb Milian Wolff:
> > > What would you suggest?
> >
> > If you want specific forward-declarations, you will have to manually walk
> > the top-context for them.
> >
> > Does php have something like namespaces/scopes? If yes, then there
> > probably isn't another way than running the declaration-builder multipe
> > times, because you cannot create a forward-declaration of "Bar" without
> > knowing its exact scope.
> >
> > Greetings, David
>
> PHP 5.3 introduces namespaces which we want to support eventually...
>
> Damn, so I'll have to fix my PreDeclarationBuilder somehow. But thank you
> very much for this heads up. Would have been a shame if I'd spent hours
> implementing ForwardDeclarations just to see one day that I can't use them
> ;-)
>
> @Niko: I might revert some of my last commits and restart from an older
> codebase. I already have some ideas. Lets see when I have the time.

I think I found a solution. Take a look at r925260.

But I'm not very confident in my changes there. It feels kinda hackish... Yet 
it works and does make some sense... Maybe I or someone else can clean that up 
one day.

-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20090212/428f6c42/attachment.sig>


More information about the KDevelop-devel mailing list