[fpc-devel] Proof of Concept ARC implementation

Sven Barth pascaldragon at googlemail.com
Fri Oct 31 15:31:29 CET 2014


Am 30.10.2014 11:34 schrieb "hinstance at yandex.ru" <hinstance at yandex.ru>:
>
> okay sorry for spamming the mailing list
>
> So basically the other problem I reported before (generic + refcounted
does not work) turns out to be something different:
> Declaring variable of refcounted type in a different unit makes the
compiler stop with error 2014092205
>
> Assume in unit Aunit I have
>   type TSomething = class refcounted end;
>
> Then I declare a procedure:
>
> procedure Run;
> var
>   server: TServer;
> begin
>   server := TServer.Create;
> end;
>
> When procedure Run is declared in Aunit, it compiles. However, if I
declare procedure Run in some other unit, say Bunit, then the compiler
stops on line with assignment :=

That simplifies things. Thanks for the update :)

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20141031/aeb3580c/attachment.html>


More information about the fpc-devel mailing list