Can we just have struct inheritence already?
ag0aep6g
anonymous at example.com
Thu Jun 13 06:11:19 UTC 2019
On 13.06.19 02:18, Timon Gehr wrote:
> int foo()@safe pure{
> int x=void;
> return x;
> }
>
> Any code that is optimized based on the assumption that `foo()` will
> always return the same value will have undefined behavior, including the
> possibility of buffer overflows or dangling pointers.
In the same vein:
size_t foo() @safe pure
{
return cast(size_t) new int;
}
More information about the Digitalmars-d
mailing list