http://d.puremagic.com/issues/show_bug.cgi?id=6695



--- Comment #5 from luka8088 <luka8...@owave.net> 2011-09-20 09:13:20 PDT ---
(In reply to comment #3)
> void c() const {}
> 
> This should work, as mutable and const implicitly cast to immutable.
>

yes, it works, thx !


> Declaring an immutable struct is the same as applying immutable to all the
> members.  Declaring a local immutable variable is the same thing.
> 

so this is a bug or not ... ?

// Error: function b.c () is not callable using argument types () immutable

import std.stdio;

immutable struct a {
  b b1;
}

struct b {
  void c () { }
}

void main () {
  a a1;
  a1.b1.c();
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to