Hi!
Is it a bug?
class Foo
{
int m_bar;
char m_gun;
@property auto ref opDispatch(string s)()
{
return mixin(m_~s);
}
this(int i,char c)
{
bar = i;//Error: undefined identifier bar, did you mean
variable m_bar?
On 12/15/2012 10:01 AM, Zhenya wrote:
Hi!
Is it a bug?
class Foo
{
int m_bar;
char m_gun;
@property auto ref opDispatch(string s)()
{
return mixin(m_~s);
}
this(int i,char c)
{
bar = i;//Error: undefined identifier bar, did you mean variable m_bar?
this.bar = i;
Because when it is
On 12/15/2012 10:07 AM, Ali Çehreli wrote:
Otherwise any type would go to opDispatch.
Wow. I made a typo in typo. :) That should be:
Otherwise any _typo_ would go to opDispatch.
Ali
On Saturday, 15 December 2012 at 18:09:00 UTC, Ali Çehreli wrote:
On 12/15/2012 10:07 AM, Ali Çehreli wrote:
Otherwise any type would go to opDispatch.
Wow. I made a typo in typo. :) That should be:
Otherwise any _typo_ would go to opDispatch.
Ali
It's pretty reasonable,thank you.