memory safety checks and trust
Claude
claudemr at live.fr
Mon Apr 13 12:19:11 UTC 2020
On Monday, 13 April 2020 at 07:50:43 UTC, Walter Bright wrote:
> Consider:
>
> @system int* pumpkin(int i) { return &i);
>
> Should that give an error or not?
>
> I.e. where does one draw the line?
I think it should not return an error. It is @system code, the
programmer should be able to hack around as he wishes.
If he chooses safety, @safe is here.
For me the line is: @system code code should behave like plain
old C. D just gives some extra expressiveness.
As a system-programmer, I wish to do with D what I can already do
with C, faster, more elegantly.
More information about the Digitalmars-d
mailing list