const vs immutable - when declaring a variable

Brother Bill brotherbill at mail.com
Fri Oct 17 19:49:07 UTC 2025


Is there any difference when declaring a variable of using const 
vs immutable.

Example:
```
const     int a = 3;
immutable int b = 4;

const     string c = "Greetings!";
immutable string d = "D Programmers!";
```


More information about the Digitalmars-d-learn mailing list