Types in dynamically typed languages
David Nolden
zwabel+kde at gmail.com
Fri Jul 4 13:03:59 UTC 2008
Am Montag, 30. Juni 2008 23:47:17 schrieb Niko Sams:
> I just commited a first version, what works for now:
>
> function foo() { return new A(); }
> function bar() { $i = new A(); return $i; }
> $j = foo();
>
> (see also php/duchain/tests/duchaintest the testReturnTypeClass test)
>
> At this stage we are allready better than ZendStudio and PHPEclipse :D
>
> could you take a look at the code...
>
> niko
I've checked out your code, and it looks nice! I would port it to my last
changes in kdevplatform, but I cannot compile because kdev-pq-list.h is
missing.
Since there is a central type-repository now, you can completely remove
typerepository.cpp and typerepository.h. Then you have to make sure that you
never use TypePtr::data() (now renamed to TypePtr::unsafeData()) without
keeping an instance of the TypePtr to keep the data alive by
reference-counting. That should be it.
Greetings, David
More information about the KDevelop-devel
mailing list