Class member function with a Callback funtion parameter
Herbert
ht at softdesign.de
Mon Jan 27 22:13:47 UTC 2020
On Monday, 27 January 2020 at 21:51:35 UTC, Adam D. Ruppe wrote:
> On Monday, 27 January 2020 at 21:21:55 UTC, Herbert wrote:
>> My project does not allow dynamic memory. So I can't use
>> delegates.
>
> delegates do not require dynamic memory.
>
> &obj.member doesn't allocate any new memory (it just points to
> the existing object) yet yields a delegate.
As I understand the D language documentation says: delegates
sometimes use dynamic memory.
More information about the Digitalmars-d-learn
mailing list