www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - UFCS > opDispatch

reply Nick Sabalausky <SeeWebsiteToContactMe semitwist.com> writes:
Unfortunately, opDispatch [silently] takes precedence over
UFCS. I don't suppose there's any way to make a UFCS function call
override opDispatch without either ditching UFCS or altering/removing
the opDispatch itself?
Jan 16 2013
parent "Simen Kjaeraas" <simen.kjaras gmail.com> writes:
On 2013-01-16, 22:02, Nick Sabalausky wrote:

 Unfortunately, opDispatch [silently] takes precedence over
 UFCS. I don't suppose there's any way to make a UFCS function call
 override opDispatch without either ditching UFCS or altering/removing
 the opDispatch itself?
Only solution I know of is to use constraints on opDispatch. -- Simen
Jan 16 2013