Re: Equivalent to Python with Statement

2018-02-28 Thread meppl via Digitalmars-d-learn
On Wednesday, 28 February 2018 at 22:00:11 UTC, meppl wrote: On Wednesday, 28 February 2018 at 21:47:40 UTC, Cym13 wrote: On Tuesday, 27 February 2018 at 16:17:20 UTC, Jonathan wrote: [...] Others have discussed that particular case at length, but to provide a more generic answer the

Re: Equivalent to Python with Statement

2018-02-28 Thread meppl via Digitalmars-d-learn
On Wednesday, 28 February 2018 at 21:47:40 UTC, Cym13 wrote: On Tuesday, 27 February 2018 at 16:17:20 UTC, Jonathan wrote: [...] Others have discussed that particular case at length, but to provide a more generic answer the correct way to translate a python context manager is to use

Re: Return value in BetterC mode.

2018-02-18 Thread meppl via Digitalmars-d-learn
On Saturday, 17 February 2018 at 13:47:28 UTC, meppl wrote: On Saturday, 17 February 2018 at 07:58:40 UTC, ANtlord wrote: ... ... sadly I have no good idea how to name the title of that issue :/ I looked at it again and came up with a title name:

Re: Return value in BetterC mode.

2018-02-17 Thread meppl via Digitalmars-d-learn
On Saturday, 17 February 2018 at 07:58:40 UTC, ANtlord wrote: Hello! Yesterday I found an interesting issue for myself while I was implementing unique pointer for my project in BetterC. When I was trying to return new instance from a `move` method I got calling of destructor the instance.