November 08, 2012 Re: Slicing static arrays should be @system | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jonathan M Davis | 11/7/2012 5:54 AM, Jonathan M Davis пишет: > On Wednesday, November 07, 2012 12:44:26 Daniel Murphy wrote: >> Slicing static arrays on the stack is equivalent to taking the address of a >> local variable, which is already illegal in SafeD. > > Which is what I'm arguing, but a number of people seem to really not like the > idea of making slicing static arrays on the stack @system even though it _is_ > the same thing as taking the address of a local variable, which is @system. > Same here. No matter how convenient this loophole is it just can't be safe. I recall SafeD's motto was along the lines of "memory safety is not negotiable almost everything else is". -- Dmitry Olshansky |
Copyright © 1999-2021 by the D Language Foundation