November 18, 2006 again inheriting of structs | ||||
---|---|---|---|---|
| ||||
Once again the same question: Why isn't it possible to inherit structs so that you don't need to explicitly cast them to a struct with the same members, or at least another way to use anonymus struct members as you can do with anonymus unions? I think using templates isn't worthy at all since you can't use a template as a function parameter. Yet there haven't been real arguments to explain this lack (at least that's what I think of it) |
Copyright © 1999-2021 by the D Language Foundation