[Issue 8838] Slicing static arrays should be considered unsafe (@system)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 17 15:23:42 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8838


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc


--- Comment #1 from bearophile_hugs at eml.cc 2012-10-17 15:23:41 PDT ---
(In reply to comment #0)

> Taking the slice of a static array is really no different from taking the
> address of a local variable, and that's already @system, so slicing a static
> array should be as well.

This is a big change in D, so before going this route I suggest to think well
about this topic.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list