Re: "Little Scheme" and PL Design (Code Critique?)

2022-11-19 Thread Jack Pope via Digitalmars-d-learn
On Thursday, 17 November 2022 at 22:05:45 UTC, jwatson-CO-edu wrote: [`Atom`](https://github.com/jwatson-CO-edu/SPARROW/blob/main/lil_schemer.d#L66) (unit of data), I throw it on the heap and never bother to delete it. I understand that D does GC for me. I am interested in using either [timed

Re: Generate a pointer to a method of a struct

2022-10-15 Thread Jack Pope via Digitalmars-d-learn
On Saturday, 15 October 2022 at 01:48:15 UTC, kdevel wrote: $ dmd -unittest -main -run ini ini.d(6): Error: non-constant expression `& bar` ini.d(7): Error: non-constant expression `& bar` ``` Is this consistent? I can attest to consistency using ldc. Each of the following prevent function ad

Re: private method callable from other module

2022-10-08 Thread Jack Pope via Digitalmars-d-learn
Altering the definition sequence in b.d to have the private version second has the desired result. Otherwise, when following private foo, it looks like public foo gets adopted as a public constructor. The same for classes.