[Issue 5700] Allow dup in nothrow functions

2015-02-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5700

--- Comment #9 from github-bugzi...@puremagic.com ---
Commit pushed to 2.067 at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/fa36fa0e8b93b1beb3876e703ba80b3468c1a3f6
Remove workaround for issue 5700

--


[Issue 5700] Allow dup in nothrow functions

2015-01-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5700

--- Comment #8 from github-bugzi...@puremagic.com ---
Commit pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/fa36fa0e8b93b1beb3876e703ba80b3468c1a3f6
Remove workaround for issue 5700

--


[Issue 5700] Allow dup in nothrow functions

2014-05-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5700

Walter Bright bugzi...@digitalmars.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@digitalmars.com
 Resolution|--- |WORKSFORME

--- Comment #7 from Walter Bright bugzi...@digitalmars.com ---
This is working in 2.066 head.

--


[Issue 5700] Allow dup in nothrow functions

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5700


Denis Shelomovskij verylonglogin@gmail.com changed:

   What|Removed |Added

 CC||verylonglogin@gmail.com
   Platform|x86 |All
 OS/Version|Windows |All


--- Comment #6 from Denis Shelomovskij verylonglogin@gmail.com 2013-10-02 
15:34:27 MSD ---
Inability to `dup`/`idup` in `nothrow` functions is very frustrating. I'd say
this is the most [one of few] PITA of `nothrow` issues for now.

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


[Issue 5700] Allow dup in nothrow functions

2013-02-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5700


monarchdo...@gmail.com changed:

   What|Removed |Added

 CC||monarchdo...@gmail.com
   See Also||http://d.puremagic.com/issu
   ||es/show_bug.cgi?id=9468


--- Comment #4 from monarchdo...@gmail.com 2013-02-07 02:10:00 PST ---
(In reply to comment #1)
 Actually, I think that it depends. For primitives and classes, dup should
 definitely be allowed. However, for structs, they'd need a postblit which was
 nothrow (if they had one), and they'd all of their member variables to either
 be classes or primitives or be structs which... recursion. So, you can't just
 blindly make the duping of arrays nothrow, but yes, it should generally be
 legal to dup arrays in nothrow functions. It's just a bit more complicated 
 when
 dealing with structs.

Just want to point out http://d.puremagic.com/issues/show_bug.cgi?id=9468 : dup
does not call postblit.

So at this point, *that* issue needs to be fixed before dup can even try to
conditionally be nothrow (or @safe)

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


[Issue 5700] Allow dup in nothrow functions

2013-02-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5700



--- Comment #5 from monarchdo...@gmail.com 2013-02-07 03:05:13 PST ---
(In reply to comment #4)
 (In reply to comment #1)
  Actually, I think that it depends. For primitives and classes, dup should
  definitely be allowed. However, for structs, they'd need a postblit which 
  was
  nothrow (if they had one), and they'd all of their member variables to 
  either
  be classes or primitives or be structs which... recursion. So, you can't 
  just
  blindly make the duping of arrays nothrow, but yes, it should generally be
  legal to dup arrays in nothrow functions. It's just a bit more complicated 
  when
  dealing with structs.
 
 Just want to point out http://d.puremagic.com/issues/show_bug.cgi?id=9468 : 
 dup
 does not call postblit.
 
 So at this point, *that* issue needs to be fixed before dup can even try to
 conditionally be nothrow (or @safe)

Wait, never mind, ignore me.

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


[Issue 5700] Allow dup in nothrow functions

2011-03-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5700



--- Comment #3 from bearophile_h...@eml.cc 2011-03-07 16:21:27 PST ---
See also:

http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.learnarticle_id=25400

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


[Issue 5700] Allow dup in nothrow functions

2011-03-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5700



--- Comment #2 from bearophile_h...@eml.cc 2011-03-04 16:11:05 PST ---
I see, thank you for your comment. Then dup has to be conditionally nothrow,
and we go back to issue 5125. (There is no need for dup to be a template, the
conditional nothrow may work on normal functions too, I think).

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