Elektrine lite

← Feed

@schmerg@mas.to

Post #2835611

2026-05-13 17:14 UTC

@shafik@hachyderm.io Not that bit but where it's then specifying a default member initialisation and the question is whether the default ctor sets the myCount to one fixed value from one evalaution of counter(), or whether "int myCount = counter();" specifies that counter() should be re-evaluated afresh in the generated ctor (which is what it does). The fact that it worked that way surprised at least 1 senior dev on our team

Replies (0)

No replies.