Forum > General

Writable access to TMap and TDicrionagy values content

(1/1)

zamtmn:
A loophole with access to private fields in the generics specialization has recently been closed. This could have been used for access with an entry in the heirs, but it no longer works((

Sometimes it is necessary to quickly change the values without iterators. I suggest we discuss https://gitlab.com/freepascal.org/fpc/source/-/issues/40656 and https://gitlab.com/freepascal.org/fpc/source/-/merge_requests/593

zamtmn:
It's strange that no one cares about this. Yes, of course you can use iterators, but this is the overhead of creating a class (allocating memory), which, for example, in the case of TMap is completely meaningless, there are no virtual methods in the iterator

Navigation

[0] Message Index

Go to full version