Re: Building and running DMD tests
On Sunday, 1 December 2019 at 15:20:42 UTC, Per Nordlöw wrote: Is it possible to compile and run unittest of dmd without druntime and phobos? If so, how? I'm trying the following under dmd root: make -C src -f posix.mak unittest ./generated/linux/release/64/dmd-unittest but that doesn't compile my file of interest test/compilable/traits.d . How can I make sure that all the files under /test/compilable compiles? The command you need is "make -Ctest". Or you can run a specific test manually using run.d. ``` cd test/ ./run.d compilable/traits.d ```
Re: Why same pointer type for GC and manual memory?
On Wednesday, 13 November 2019 at 16:43:27 UTC, IGotD- wrote: Best example is probably managed C++, an MS extension to C++ which is now deprecated. MS Managed C++ was superseded by C++/CLI[1] which was standardized. They actually retained the special syntax for GC pointers. One of the motivations if I understand correctly is to let the programmers easily distinguish which pointers should be freed and which ones are managed by the GC. It's not a bad idea when there is extensive use of both manual memory management and garbage collection. [1] https://en.wikipedia.org/wiki/C%2B%2B/CLI