I think what Chad is looking for is a BlackHole/WhiteHole equivalent which doesn't need abstract functions but which figures out all the methods of a class at compile time and creates a subclass that throws/does nothing on method invocation. An 'alias this' field would be used that is default-initialized with this sentry object. I don't know why we don't have __traits(allFunction). We have 'getVirtualFunctions' but it requires a function name, but using allMembers to filter out function names is damn difficult if you ask me. I've never had an easy time interacting with __traits.
- Re: dereferencing null Sandeep Datta
- Re: dereferencing null Sandeep Datta
- Re: dereferencing null Nick Sabalausky
- Re: dereferencing null Jonathan M Davis
- Re: dereferencing null Walter Bright
- Re: dereferencing null Don Clugston
- Re: dereferencing null Sean Kelly
- Re: dereferencing null Martin Nowak
- Re: dereferencing null Don Clugston
- Re: dereferencing null Steven Schveighoffer
- Re: dereferencing null Andrej Mitrovic
- Re: dereferencing null H. S. Teoh
- Re: dereferencing null Andrej Mitrovic
- Re: dereferencing null Andrej Mitrovic
- Re: dereferencing null Andrej Mitrovic
- Re: dereferencing null H. S. Teoh
- Re: dereferencing null Chad J
- Re: dereferencing null Sean Kelly
- Re: dereferencing null Walter Bright
- Re: dereferencing null David Nadlinger
- Re: dereferencing null bearophile