Re: setjmp support for windows.

2025-03-10 Thread zz via Digitalmars-d-learn
On Tuesday, 4 March 2025 at 11:25:14 UTC, Paul Backus wrote: On Monday, 24 February 2025 at 12:53:30 UTC, zz wrote: Hi, Is setjmp/longjmp supported under windows? Regards, zz It's a standard C function, and Microsoft's online library documentation says that it's supported, so it should work

Re: sqlite3 library which can read class instances (not structs)?

2025-03-10 Thread Ali Çehreli via Digitalmars-d-learn
On 3/10/25 2:31 PM, Andy Valencia wrote: > Is there a static-if > which can tell if a type is of a struct, as opposed to a class? [...] > Something like: > >> static if (__traits(isClass, T)) { >>... >> } else if (__traits(isStruct, T)) { >>... >> } else { >>(failure) >> } > > Thank

Re: sqlite3 library which can read class instances (not structs)?

2025-03-10 Thread Sergey via Digitalmars-d-learn
On Thursday, 6 March 2025 at 23:45:01 UTC, Andy Valencia wrote: Is there a sqlite3 interface library which can correctly read into instances? sqlite3-d will let me compile with a class, but it segv's when run. ddbc seems to support only structs, and I can use it to punch in one value at a tim

Re: sqlite3 library which can read class instances (not structs)?

2025-03-10 Thread Andy Valencia via Digitalmars-d-learn
On Monday, 10 March 2025 at 22:55:03 UTC, Ali Çehreli wrote: You would expect that to be provided by one of the following: https://dlang.org/phobos/std_traits.html https://dlang.org/spec/traits.html But in this case it's the "is expression": https://dlang.org/spec/expression.html#is_exp

Re: sqlite3 library which can read class instances (not structs)?

2025-03-10 Thread Andy Valencia via Digitalmars-d-learn
On Thursday, 6 March 2025 at 23:45:01 UTC, Andy Valencia wrote: Is there a sqlite3 interface library which can correctly read into instances? sqlite3-d will let me compile with a class, but it segv's when run. ddbc seems to support only structs, and I can use it to punch in one value at a tim