Actually, that brings up a good point -- it doesn't make a
difference for the struct itself, but it makes a difference
transitively...
On Sunday, 6 May 2012 at 14:37:49 UTC, Mehrdad wrote:
I think you misread my question.
I was asking about declaring a STRUCT as const, not a VARIABLE
as
const.
On Sunday, 6 May 2012 at 13:09:06 UTC, deadalnix wrote:
Le 03/05/2012 08:00, Mehrdad a écrit :
Also, what exactly is the difference between declaring a
struct as
immutable or as const? Aren't they unmodifiable either way?
Const can point to mutable or immutable data.
const are thread local and immutable aren't.