Goal achieved! Thanks all, really appreciate the assistance.
On Tuesday, 31 August 2021 at 06:15:07 UTC, jfondren wrote:
On Tuesday, 31 August 2021 at 05:42:22 UTC, ag0aep6g wrote:
On 31.08.21 02:50, Mike Parker wrote:
Member functions marked as immutable can be called on both
mutable and immutable instances.
That's not true.
Demonstrated:
Well
On Tuesday, 31 August 2021 at 05:42:22 UTC, ag0aep6g wrote:
On 31.08.21 02:50, Mike Parker wrote:
Member functions marked as immutable can be called on both
mutable and immutable instances.
That's not true.
Demonstrated:
```d
struct S {
int x;
int get() immutable { return x; }
}
On 31.08.21 02:50, Mike Parker wrote:
Member functions marked as immutable can be called on both mutable and
immutable instances.
That's not true.
On Monday, 30 August 2021 at 23:27:07 UTC, Merlin Diavova wrote:
```
After playing around the above works, Great! However I have
some questions
First, why do the interfaces have to be defined as `immutable
interface`?
The interfaces cannot be changed at runtime or instantiated.
It isn't
On Mon, Aug 30, 2021 at 11:27:07PM +, Merlin Diavova via
Digitalmars-d-learn wrote:
> Hi All,
>
> I'm trying to understand immutability in D and it seems a bit odd.
> I'm coming from dynamic languages so please forgive my ignorance and
> dynamic language-isms.
>
> I want to have a base