Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
July 18, 2012 [Issue 8398] New: enforceEx cannot be used with OutOfMemoryError | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=8398 Summary: enforceEx cannot be used with OutOfMemoryError Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: jakobovrum@gmail.com --- Comment #0 from Jakob Ovrum <jakobovrum@gmail.com> 2012-07-18 02:50:51 PDT --- This idiom would be quite useful to have: auto data = enforceEx!OutOfMemoryError(malloc(size)); However, OutOfMemoryError only provides this constructor: this(string file = __FILE__, size_t line = __LINE__, Throwable next = null ) I think enforceEx is at fault here, not OutOfMemoryError. The non-deprecated overload of enforceEx should allow for constructors of the above form, requiring the file and line but providing its own messsage. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 22, 2012 [Issue 8398] enforceEx cannot be used with OutOfMemoryError | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jakob Ovrum | http://d.puremagic.com/issues/show_bug.cgi?id=8398 Jonathan M Davis <jmdavisProg@gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jmdavisProg@gmx.com --- Comment #1 from Jonathan M Davis <jmdavisProg@gmx.com> 2012-07-22 00:44:27 PDT --- https://github.com/D-Programming-Language/phobos/pull/711 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 22, 2012 [Issue 8398] enforceEx cannot be used with OutOfMemoryError | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jakob Ovrum | http://d.puremagic.com/issues/show_bug.cgi?id=8398 --- Comment #2 from github-bugzilla@puremagic.com 2012-07-22 02:01:38 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/ed22f41ec263adf9c2828ac162ca28098f220f87 Fix for issue# 8398. https://github.com/D-Programming-Language/phobos/commit/e58385ac9421cccfb9fc329ebf6f1d0c45f925c7 Merge pull request #711 from jmdavis/enforce Fix for issue# 8398. (enforceEx cannot be used with OutOfMemoryError) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 22, 2012 [Issue 8398] enforceEx cannot be used with OutOfMemoryError | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jakob Ovrum | http://d.puremagic.com/issues/show_bug.cgi?id=8398 --- Comment #3 from github-bugzilla@puremagic.com 2012-07-22 02:04:44 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/c39fa9026411a3063a805c98c520f934c8d16857 Added issue# 8398 to the changelog. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 22, 2012 [Issue 8398] enforceEx cannot be used with OutOfMemoryError | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jakob Ovrum | http://d.puremagic.com/issues/show_bug.cgi?id=8398 Jonathan M Davis <jmdavisProg@gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- 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