From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: *** X-Spam-Status: No, score=3.8 required=5.0 tests=BAYES_00,INVALID_MSGID, RATWARE_MS_HASH,RATWARE_OUTLOOK_NONAME autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,b87849933931bc93 X-Google-Attributes: gid109fba,public X-Google-Thread: fac41,b87849933931bc93 X-Google-Attributes: gidfac41,public X-Google-Thread: 1111a3,5ee869da42505971 X-Google-Attributes: gid1111a3,public X-Google-Thread: 103376,b87849933931bc93 X-Google-Attributes: gid103376,public X-Google-Thread: 1108a1,b87849933931bc93 X-Google-Attributes: gid1108a1,public X-Google-Thread: 114809,b87849933931bc93 X-Google-Attributes: gid114809,public From: "Russ McClelland" Subject: Re: Combining dynamic and static typing Date: 1997/01/29 Message-ID: <01bc0dec$e9265e20$ed22109b@russ-mc-laptop>#1/1 X-Deja-AN: 213000389 references: <5celpp$n3r@csugrad.cs.vt.edu> <1997Jan28.160420.28915@schbbs.mot.com> <5cloqm$9kn@csugrad.cs.vt.edu> organization: Perot Systems newsgroups: comp.lang.eiffel,comp.lang.ada,comp.lang.c++,comp.lang.smalltalk,comp.lang.objective-c,comp.object Date: 1997-01-29T00:00:00+00:00 List-Id: I think the real problem is that the C++ compiler is really stupid about types and type checking. When you create templates, it forces you to declare what class to use as your template parameter. Example: vector< Object * > v; Of course this isn't bad in this case, but how about this: vector< Object * > v; vector< Object * > y( v ); The stupid compiler should already know what type vector y should be, because it already knows what vector x is, and I'm invoking a copy constructor.