Re: opIn_r not detected

2011-02-12 Thread Stewart Gordon
On 10/02/2011 22:32, spir wrote: On 02/10/2011 07:43 PM, Stewart Gordon wrote: That got me thinking. It would appear that it auto-dereferences only the left operand. Try adding this to your code and see: writeln(s2 == sp); Works, indeed, but using opEquals on s2, and because s2 is not "poin

Re: opIn_r not detected

2011-02-10 Thread spir
On 02/10/2011 07:43 PM, Stewart Gordon wrote: On 10/02/2011 12:59, spir wrote: Hello, Implicite deref of struct pointers on member access works fine for data, methods, even special methods with language semantics like opEquals (see example below). But I cannot have 'in' work with method opIn_r.

Re: opIn_r not detected

2011-02-10 Thread Stewart Gordon
On 10/02/2011 12:59, spir wrote: Hello, Implicite deref of struct pointers on member access works fine for data, methods, even special methods with language semantics like opEquals (see example below). But I cannot have 'in' work with method opIn_r. I get: Error: rvalue of in expression must be

Re: opIn_r not detected

2011-02-10 Thread spir
On 02/10/2011 02:39 PM, Steven Schveighoffer wrote: On Thu, 10 Feb 2011 07:59:06 -0500, spir wrote: Hello, Implicite deref of struct pointers on member access works fine for data, methods, even special methods with language semantics like opEquals (see example below). But I cannot have 'in' w

Re: opIn_r not detected

2011-02-10 Thread Steven Schveighoffer
On Thu, 10 Feb 2011 07:59:06 -0500, spir wrote: Hello, Implicite deref of struct pointers on member access works fine for data, methods, even special methods with language semantics like opEquals (see example below). But I cannot have 'in' work with method opIn_r. I get: Error: rvalu