Thread overview | |||||
---|---|---|---|---|---|
|
January 05, 2011 [Issue 5415] New: @Safe functions not working | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=5415 Summary: @Safe functions not working Product: D Version: D2 Platform: All URL: http://www.digitalmars.com/d/2.0/function.html#functio n-safety OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: eatingstaples@gmail.com --- Comment #0 from eatingstaples@gmail.com 2011-01-05 09:08:13 PST --- Created an attachment (id=860) Code showing features not working This is either a compiler bug, or outdated language documentation, but I'm having some freedom with @safe functions: * No casting from a pointer type to any type other than void*. * No modification of pointer values. * No taking the address of a local variable or function parameter. I've attached code which does all three of these things, which compiles and runs. Inline assembler was an error, as well as casting from integer to a pointer type, but I didn't test anything else. I'm using dmd2.exe as my compiler. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 11, 2011 [Issue 5415] @Safe functions not working | ||||
---|---|---|---|---|
| ||||
Posted in reply to eatingstaples@gmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=5415 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |accepts-invalid, patch CC| |yebblies@gmail.com --- Comment #1 from yebblies <yebblies@gmail.com> 2011-06-11 07:36:56 PDT --- https://github.com/D-Programming-Language/dmd/pull/109 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 26, 2011 [Issue 5415] @Safe functions not working | ||||
---|---|---|---|---|
| ||||
Posted in reply to eatingstaples@gmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=5415 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED --- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2011-06-26 16:26:53 PDT --- https://github.com/D-Programming-Language/dmd/commit/952795ec69ad7d704c0848bb160521a435749c42 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation