Re: Why is Throwable.TraceInfo.toString not @safe?

2019-07-22 Thread Johannes Loher via Digitalmars-d-learn
Am 22.07.19 um 20:38 schrieb Jonathan M Davis: > On Monday, July 22, 2019 1:29:21 AM MDT Johannes Loher via Digitalmars-d- > learn wrote: >> Am 22.07.19 um 05:16 schrieb Paul Backus: >>> On Sunday, 21 July 2019 at 18:03:33 UTC, Johannes Loher wrote: I'd like to log stacktraces of caught

Re: Why is Throwable.TraceInfo.toString not @safe?

2019-07-22 Thread Jonathan M Davis via Digitalmars-d-learn
On Monday, July 22, 2019 1:29:21 AM MDT Johannes Loher via Digitalmars-d- learn wrote: > Am 22.07.19 um 05:16 schrieb Paul Backus: > > On Sunday, 21 July 2019 at 18:03:33 UTC, Johannes Loher wrote: > >> I'd like to log stacktraces of caught exceptions in an @safe manner. > >> However,

Re: Why is Throwable.TraceInfo.toString not @safe?

2019-07-22 Thread Johannes Loher via Digitalmars-d-learn
Am 22.07.19 um 05:16 schrieb Paul Backus: > On Sunday, 21 July 2019 at 18:03:33 UTC, Johannes Loher wrote: >> I'd like to log stacktraces of caught exceptions in an @safe manner. >> However, Throwable.TraceInfo.toString is not @safe (or @trusted), so >> this is not possible. Why is it not @safe?

Re: Why is Throwable.TraceInfo.toString not @safe?

2019-07-21 Thread Paul Backus via Digitalmars-d-learn
On Sunday, 21 July 2019 at 18:03:33 UTC, Johannes Loher wrote: I'd like to log stacktraces of caught exceptions in an @safe manner. However, Throwable.TraceInfo.toString is not @safe (or @trusted), so this is not possible. Why is it not @safe? Can it be @trusted? Thanks for your help!

Why is Throwable.TraceInfo.toString not @safe?

2019-07-21 Thread Johannes Loher via Digitalmars-d-learn
I'd like to log stacktraces of caught exceptions in an @safe manner. However, Throwable.TraceInfo.toString is not @safe (or @trusted), so this is not possible. Why is it not @safe? Can it be @trusted? Thanks for your help!