Feature request: clone a class (similar to typedef)

Bill Baxter dnewsgroup at billbaxter.com
Sat Sep 22 01:00:09 PDT 2007


Michael Kiermaier wrote:
> I have run several times into this situation (that I want a duplicate of a class).
> 
> I like the proposal, in my opinion it would feel quite natural to have a third keyword besides alias and typedef.
> One is for aliasing a class (alias), one for duplicating the class type without the internals (typedef), and one for full duplicating (clone ore something different).

You don't add keywords for things that have only come up "several 
times".  If you're not going to use it just about every time you touch 
your keyboard, then it shouldn't be a keyword.

--bb



More information about the Digitalmars-d mailing list