History of Idiom 209 > diff from v11 to v12
Edit summary for version 12 by hose:
New C++ implementation by user [hose]
New C++ implementation by user [hose]
↷
Version 11
2020-03-20, 17:33:26
Version 12
2021-08-16, 10:03:39
Idiom #209 Type with automatic deep deallocation
Declare a type t which contains a string s and an integer array n with variable size, and allocate a variable v of type t. Allocate v.s and v.n and set them to the values "Hello, world!" for s and [1,4,9,16,25], respectively. Deallocate v, automatically deallocating v.s and v.n (no memory leaks).
Idiom #209 Type with automatic deep deallocation
Declare a type t which contains a string s and an integer array n with variable size, and allocate a variable v of type t. Allocate v.s and v.n and set them to the values "Hello, world!" for s and [1,4,9,16,25], respectively. Deallocate v, automatically deallocating v.s and v.n (no memory leaks).
Comments bubble