[Issue 1310] alias opCall vs struct literal
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jul 23 12:55:38 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1310
thomas-dloop at kuehne.cn changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
OS/Version|Windows |All
Platform|PC |All
------- Comment #1 from thomas-dloop at kuehne.cn 2007-07-23 14:55 -------
The same behaviour is caused by:
# struct A {
# int opCall;
# }
As far as I can see the code behaves as documented - opCall expects a function
not a delegate or function pointer - however issuing at least a warning if -w
is used would be sensible. Adding delegate/function pointer support for op*
member functions might be interesting nevertheless.
--
More information about the Digitalmars-d-bugs
mailing list