Thread overview
[Issue 18183] std.variant should be usable in @safe
Jan 03, 2018
Seb
Dec 17, 2022
Iain Buclaw
January 03, 2018
https://issues.dlang.org/show_bug.cgi?id=18183

Seb <greensunny12@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |18110


Referenced Issues:

https://issues.dlang.org/show_bug.cgi?id=18110
[Issue 18110] most of phobos should be @safe-ly useable
--
October 28, 2019
https://issues.dlang.org/show_bug.cgi?id=18183

Steven Schveighoffer <schveiguy@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy@yahoo.com

--- Comment #1 from Steven Schveighoffer <schveiguy@yahoo.com> ---
Fully agree. Would it be reasonable to have a SafeVariant type that excludes any types which cannot run all the variant code with @safe?

I'm running into this, because I'm trying to make everything in mysql-native safe, and it uses Variant a lot.

It's going to be really hard to make Variant safe "when it needs to be", since you can't overload based on @safe, and you can't detect whether the caller is asking for a safe call in a template.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=18183

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--
December 01
https://issues.dlang.org/show_bug.cgi?id=18183

--- Comment #2 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/phobos/issues/9732

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--