Debug help - opDispatch - unknown member function
IchorDev
zxinsworld at gmail.com
Tue Sep 9 15:47:38 UTC 2025
On Tuesday, 9 September 2025 at 12:04:07 UTC, Brother Bill wrote:
> When commenting out the callHome() in struct C, it fails.
You can't call a function that doesn't exist. When the function
doesn't exist, you can't call it.
> Obviously if callHome() is explicitly created, it works.
*Explicitly* created? You can't just call a non-existent function
and expect the compiler to generate it for you. You would need to
have an `opDispatch` in `struct C` in order to do what you seem
to be expecting to happen.
More information about the Digitalmars-d-learn
mailing list