-
Creating as a discussion as maybe this will never come up in practice, but I'm suspecting this is bug/regression material or minimally new subtle gotchas one needs to be aware of. With deferred initialization of aggregate record fields, any nested record fields using non-const default values (network_time() / current_time(), ...) are now evaluated at access time only. Below script is somewhat constructed in that it uses Concretely, the
I'm suspecting a possible fix is to not defer initialization of aggregate records if they recursively contain non-const default expressions on any of their fields. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I agree that this is not nice, makes it easy to shoot yourself into the foot in really hard to debug ways - and I like your idea of a fix for this. |
Beta Was this translation helpful? Give feedback.
-
This has been fixed. |
Beta Was this translation helpful? Give feedback.
This has been fixed.