Re: C++/D class interop example crashes

2021-03-27 Thread Mike Parker via Digitalmars-d-learn
On Saturday, 27 March 2021 at 21:50:19 UTC, Jan wrote: On Saturday, 27 March 2021 at 18:39:53 UTC, Bastiaan Veelo wrote: The example links objects statically. You may be experiencing additional challenges with crossing DLL boundaries. I have not yet used DLLs, but did you initialise the D

Re: code.dlang.org package search subtly broken?

2021-03-27 Thread Imperatorn via Digitalmars-d-learn
On Saturday, 27 March 2021 at 20:36:08 UTC, bachmeier wrote: On Saturday, 27 March 2021 at 14:53:52 UTC, Imperatorn wrote: Yeah, the search is broken sadly. I made a PR about it some time ago. Partial searches doesn't work I don't think it's Dub search that's broken, really, it's that Dub

Re: Immutable

2021-03-27 Thread Meta via Digitalmars-d-learn
On Saturday, 27 March 2021 at 20:44:12 UTC, Brad wrote: I was looking through lots of sample code on Rosetta Code. D has a lot of solutions out there. That is really nice but it has me wondering - coming from other languages that do not support the concept of immutability - do real world

Re: Immutable

2021-03-27 Thread bachmeier via Digitalmars-d-learn
On Saturday, 27 March 2021 at 20:44:12 UTC, Brad wrote: I was looking through lots of sample code on Rosetta Code. D has a lot of solutions out there. That is really nice but it has me wondering - coming from other languages that do not support the concept of immutability - do real world

Re: C++/D class interop example crashes

2021-03-27 Thread Jan via Digitalmars-d-learn
On Saturday, 27 March 2021 at 18:39:53 UTC, Bastiaan Veelo wrote: The example links objects statically. You may be experiencing additional challenges with crossing DLL boundaries. I have not yet used DLLs, but did you initialise the D runtime? I haven't done anything extra (I'm pretty new to

Immutable

2021-03-27 Thread Brad via Digitalmars-d-learn
I was looking through lots of sample code on Rosetta Code. D has a lot of solutions out there. That is really nice but it has me wondering - coming from other languages that do not support the concept of immutability - do real world programmers and/or hobbyists really use it as much as I see

Re: code.dlang.org package search subtly broken?

2021-03-27 Thread bachmeier via Digitalmars-d-learn
On Saturday, 27 March 2021 at 14:53:52 UTC, Imperatorn wrote: Yeah, the search is broken sadly. I made a PR about it some time ago. Partial searches doesn't work I don't think it's Dub search that's broken, really, it's that Dub uses MongoDB for searches, as discussed here:

Re: C++/D class interop example crashes

2021-03-27 Thread bachmeier via Digitalmars-d-learn
On Saturday, 27 March 2021 at 18:39:53 UTC, Bastiaan Veelo wrote: The example links objects statically. You may be experiencing additional challenges with crossing DLL boundaries. I have not yet used DLLs, but did you initialise the D runtime? — Bastiaan. This is an example taken from the

Re: C++/D class interop example crashes

2021-03-27 Thread Bastiaan Veelo via Digitalmars-d-learn
On Saturday, 27 March 2021 at 15:09:20 UTC, Jan wrote: I just tried to get this example to work: https://dlang.org/spec/cpp_interface.html#using_d_classes_from_cpp It kept crashing for me with a 'privileged instruction' error when the function 'bar' was executed. Finally I removed the call to

Re: code.dlang.org package search subtly broken?

2021-03-27 Thread Brian via Digitalmars-d-learn
On Saturday, 27 March 2021 at 14:53:52 UTC, Imperatorn wrote: Yeah, the search is broken sadly. I made a PR about it some time ago. Partial searches doesn't work Good to know. Thank you.

C++/D class interop example crashes

2021-03-27 Thread Jan via Digitalmars-d-learn
I just tried to get this example to work: https://dlang.org/spec/cpp_interface.html#using_d_classes_from_cpp It kept crashing for me with a 'privileged instruction' error when the function 'bar' was executed. Finally I removed the call to writefln and voilà it finally works. So why does it

Re: code.dlang.org package search subtly broken?

2021-03-27 Thread Imperatorn via Digitalmars-d-learn
On Saturday, 27 March 2021 at 13:48:10 UTC, Brian wrote: Hello -- When I go to https://code.dlang.org and use the search function on the top right corner, it usually works fine. However, there was one package I knew I specifically wanted (png-d) but when I typed png-d into the search bar, I

code.dlang.org package search subtly broken?

2021-03-27 Thread Brian via Digitalmars-d-learn
Hello -- When I go to https://code.dlang.org and use the search function on the top right corner, it usually works fine. However, there was one package I knew I specifically wanted (png-d) but when I typed png-d into the search bar, I was greeted with an error page, reproduced at the bottom

Re: isPOD is broken?

2021-03-27 Thread Oleg B via Digitalmars-d-learn
On Friday, 26 March 2021 at 12:13:29 UTC, kinke wrote: A class *reference* is always a POD. Only structs can be non-PODs. In this case what means "does not have virtual functions, does not inherit"? Structs doesn't have virtual methods and they can't inherits.