Re: DIP1001: Exception Handling Extensions

2016-07-18 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 07/16/2016 01:35 PM, Superstar64 wrote: On Saturday, 16 July 2016 at 12:42:49 UTC, Andrei Alexandrescu wrote: Work much appreciated. Looks like the new community process works! -- Andrei I'm not sure you understand, I rejected my own PR. Understood. Wasn't that due to the community

Re: DIP1001: Exception Handling Extensions

2016-07-16 Thread rikki cattermole via Digitalmars-d-announce
On 17/07/2016 5:35 AM, Superstar64 wrote: On Saturday, 16 July 2016 at 12:42:49 UTC, Andrei Alexandrescu wrote: Work much appreciated. Looks like the new community process works! -- Andrei I'm not sure you understand, I rejected my own PR. Exactly! It works :)

Re: DIP1001: Exception Handling Extensions

2016-07-16 Thread Superstar64 via Digitalmars-d-announce
On Saturday, 16 July 2016 at 12:42:49 UTC, Andrei Alexandrescu wrote: Work much appreciated. Looks like the new community process works! -- Andrei I'm not sure you understand, I rejected my own PR.

Re: DIP1001: Exception Handling Extensions

2016-07-16 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 07/16/2016 12:51 AM, Superstar64 wrote: On Sunday, 10 July 2016 at 19:55:37 UTC, Superstar64 wrote: link: https://github.com/dlang/DIPs/pull/9 file: https://github.com/Superstar64/DIPs/blob/exception_extensions/DIPs/DIP1001.md I decided to close the PR. The my proposal had too many

Re: DIP1001: Exception Handling Extensions

2016-07-15 Thread Superstar64 via Digitalmars-d-announce
On Sunday, 10 July 2016 at 19:55:37 UTC, Superstar64 wrote: link: https://github.com/dlang/DIPs/pull/9 file: https://github.com/Superstar64/DIPs/blob/exception_extensions/DIPs/DIP1001.md I decided to close the PR. The my proposal had too many problems with it.

Re: DIP1001: Exception Handling Extensions

2016-07-13 Thread Superstar64 via Digitalmars-d-announce
On Sunday, 10 July 2016 at 19:55:37 UTC, Superstar64 wrote: link: https://github.com/dlang/DIPs/pull/9 file: https://github.com/Superstar64/DIPs/blob/exception_extensions/DIPs/DIP1001.md I extended this DIP to add @throws(auto) and inference for auto and template functions.

Re: DIP1001: Exception Handling Extensions

2016-07-11 Thread Chris Wright via Digitalmars-d-announce
On Sun, 10 Jul 2016 21:55:04 +, Superstar64 wrote: > You could use both c style and d stack unwinding: I misread that. The tagged union part applies even if the function can throw some types that don't participate in the compile-time error system.

Re: DIP1001: Exception Handling Extensions

2016-07-11 Thread Superstar64 via Digitalmars-d-announce
On Sunday, 10 July 2016 at 19:55:37 UTC, Superstar64 wrote: link: https://github.com/dlang/DIPs/pull/9 file: https://github.com/Superstar64/DIPs/blob/exception_extensions/DIPs/DIP1001.md I'm not too familiar with stack unwinding generation, but would generating a separate unwind table for

Re: DIP1001: Exception Handling Extensions

2016-07-11 Thread Basile B. via Digitalmars-d-announce
On Monday, 11 July 2016 at 14:44:08 UTC, Seb wrote: On Monday, 11 July 2016 at 12:36:59 UTC, Basile B. wrote: On Sunday, 10 July 2016 at 19:55:37 UTC, Superstar64 wrote: link: https://github.com/dlang/DIPs/pull/9 file:

Re: DIP1001: Exception Handling Extensions

2016-07-11 Thread Seb via Digitalmars-d-announce
On Monday, 11 July 2016 at 12:36:59 UTC, Basile B. wrote: On Sunday, 10 July 2016 at 19:55:37 UTC, Superstar64 wrote: link: https://github.com/dlang/DIPs/pull/9 file: https://github.com/Superstar64/DIPs/blob/exception_extensions/DIPs/DIP1001.md

Re: DIP1001: Exception Handling Extensions

2016-07-11 Thread Basile B. via Digitalmars-d-announce
On Sunday, 10 July 2016 at 19:55:37 UTC, Superstar64 wrote: link: https://github.com/dlang/DIPs/pull/9 file: https://github.com/Superstar64/DIPs/blob/exception_extensions/DIPs/DIP1001.md https://forum.dlang.org/post/auplvezvpisiufwvd...@forum.dlang.org

Re: DIP1001: Exception Handling Extensions

2016-07-10 Thread Superstar64 via Digitalmars-d-announce
On Sunday, 10 July 2016 at 21:52:37 UTC, Lodovico Giaretta wrote: On Sunday, 10 July 2016 at 19:55:37 UTC, Superstar64 wrote: link: https://github.com/dlang/DIPs/pull/9 file: https://github.com/Superstar64/DIPs/blob/exception_extensions/DIPs/DIP1001.md I'm not convinced by this proposal.

Re: DIP1001: Exception Handling Extensions

2016-07-10 Thread Superstar64 via Digitalmars-d-announce
On Sunday, 10 July 2016 at 21:43:08 UTC, Chris Wright wrote: On Sun, 10 Jul 2016 19:55:37 +, Superstar64 wrote: link: https://github.com/dlang/DIPs/pull/9 file: https://github.com/Superstar64/DIPs/blob/exception_extensions/DIPs/ DIP1001.md So if my function calls any runtime functions --

Re: DIP1001: Exception Handling Extensions

2016-07-10 Thread Lodovico Giaretta via Digitalmars-d-announce
On Sunday, 10 July 2016 at 19:55:37 UTC, Superstar64 wrote: link: https://github.com/dlang/DIPs/pull/9 file: https://github.com/Superstar64/DIPs/blob/exception_extensions/DIPs/DIP1001.md I'm not convinced by this proposal. Here are some early thoughts: 1) Wouldn't a library solution based on

Re: DIP1001: Exception Handling Extensions

2016-07-10 Thread Superstar64 via Digitalmars-d-announce
On Sunday, 10 July 2016 at 20:30:56 UTC, Stefan Koch wrote: On Sunday, 10 July 2016 at 19:55:37 UTC, Superstar64 wrote: link: https://github.com/dlang/DIPs/pull/9 file: https://github.com/Superstar64/DIPs/blob/exception_extensions/DIPs/DIP1001.md You don't have to use gc-allocated exceptions

Re: DIP1001: Exception Handling Extensions

2016-07-10 Thread Chris Wright via Digitalmars-d-announce
On Sun, 10 Jul 2016 19:55:37 +, Superstar64 wrote: > link: https://github.com/dlang/DIPs/pull/9 file: > https://github.com/Superstar64/DIPs/blob/exception_extensions/DIPs/ DIP1001.md So if my function calls any runtime functions -- it allocates memory, slices an array, etc -- I can't use

Re: DIP1001: Exception Handling Extensions

2016-07-10 Thread Jack Stouffer via Digitalmars-d-announce
On Sunday, 10 July 2016 at 19:55:37 UTC, Superstar64 wrote: link: https://github.com/dlang/DIPs/pull/9 file: https://github.com/Superstar64/DIPs/blob/exception_extensions/DIPs/DIP1001.md Adding another attribute to the language and having the compiler do magic behind the scenes? No thanks.

Re: DIP1001: Exception Handling Extensions

2016-07-10 Thread Stefan Koch via Digitalmars-d-announce
On Sunday, 10 July 2016 at 19:55:37 UTC, Superstar64 wrote: link: https://github.com/dlang/DIPs/pull/9 file: https://github.com/Superstar64/DIPs/blob/exception_extensions/DIPs/DIP1001.md You don't have to use gc-allocated exceptions anyway. Allowing to throw any type makes chaining

DIP1001: Exception Handling Extensions

2016-07-10 Thread Superstar64 via Digitalmars-d-announce
link: https://github.com/dlang/DIPs/pull/9 file: https://github.com/Superstar64/DIPs/blob/exception_extensions/DIPs/DIP1001.md