[fpc-devel] Feature announcement: Record management operators

Maciej Izak hnb.code at gmail.com
Wed Mar 30 08:38:42 CEST 2016


2016-03-30 7:49 GMT+02:00 Anthony Walter <sysrpl at gmail.com>:

> I put up a testing page for your modifications here:
>
> http://www.getlazarus.org/language/smart/
>
> The tests are rather simple and sloppy, but so far the few tests I've
> written have passed using revision 33384. If anyone wants to add/change the
> test source code you can use the edit feature on that page. I will post
> your test/results when I run them myself.
>

Thanks for nice page :)

Note that in tests directory exists set of tests for management operators
(and for related RTTI):

toperator89.pp - simple syntax test for new operators { %NORUN }
toperator90.pp - management operators for global variables, local
variables, fields in classes, New and Dispose, InitializeArray and
FinalizeArray, Initialize and Finalize
toperator91.pp - similar to toperator90 but for record without managed field
toperator92.pp - test for fields in classes with inheritance
toperator93.pp - test for fields in objects with inheritance as
global/local variable + related objects usages for New, Dispose,
InitializeArray,
FinalizeArray, Initialize, Finalize.
toperator94.pp - simple syntax test for expected error { %FAIL }
trtti10.pp - record RTTI pointer to init table

new in r33384:

toperator95.pp - dynamic array test for records and objects

-- 
Best regards,
Maciej Izak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20160330/55ae7e7a/attachment.html>


More information about the fpc-devel mailing list