Super easy struct construction question that I'm embarrassed to ask.

Dennis dkorpel at gmail.com
Thu Jan 9 22:08:31 UTC 2025


On Thursday, 9 January 2025 at 22:01:59 UTC, WhatMeWorry wrote:
>     this(Location locaction, uint f) {
>         this.location = location;
>         this.f = f;
>     }


You misspelled the parameter name 'locaction', so your assignment 
in the constructor is a no-op:

```
this.location = this.location
```


More information about the Digitalmars-d-learn mailing list