Re: UFCS and "with" statement

2013-06-12 Thread Rob T
On Wednesday, 12 June 2013 at 11:05:22 UTC, bearophile wrote: Rob T: Rather disappointing that this fails. Anyone know if this is an expected limitation of UFCS or a bug? Probably no one thought on this case. Why do you think it's useful? Bye, bearophile If we're to use UFCS as a means t

Re: UFCS and "with" statement

2013-06-12 Thread bearophile
Rob T: Rather disappointing that this fails. Anyone know if this is an expected limitation of UFCS or a bug? Probably no one thought on this case. Why do you think it's useful? Bye, bearophile

UFCS and "with" statement

2013-06-11 Thread Rob T
struct S { } void f(S) { } void main() { S s; with (s) { f(); // compiler error } } Rather disappointing that this fails. Anyone know if this is an expected limitation of UFCS or a bug? --rt