How is this an "Access Violation"
Ruby The Roobster
michaeleverestc79 at gmail.com
Wed Oct 28 12:33:18 UTC 2020
On Wednesday, 28 October 2020 at 00:48:36 UTC, Ruby The Roobster
> On Tuesday, 27 October 2020 at 02:05:37 UTC, Ruby The Roobster
>> Following function when called throws an access violation. I
>> think it has to do with the assert statements, but I don't
>> know why.
> Okay. I messed up here. It should be: this.base = new atom(...)
> . I corrected that. The assert statements still don't work
Turns out all attempts to access member variables of that class
atom a = new atom(...);
a.valence = 5;
Object.Error@(0): Access Violation
More information about the Digitalmars-d-learn