Re: I think this is a bug...
- From: "Holger Grund" <holger.grund@xxxxxxxxxxxxxxx>
- Date: Tue, 6 Dec 2005 18:46:07 +0100
"Peter Oliphant" <poliphant@xxxxxxxxxxxxxxxx> wrote
> Ok, I'll buy that. Sort of. BUT --- doesn't this feature reverse the
> concept of type-checking? One of the reasons for passing something by
> value is so the original can't be changed. Doesn't this feature violate
> that concept?
>
Not necessarily. You really can't tell whether the value is copied
only from the expression at the call site.
For instance, if the declaration was
void Test_Method( Test_Struct% info);
there wouldn't be a copy involved.
Nonetheless, I agree implicit boxing is dangerous and it
shouldn't be in the language IMHO. But I'm afraid you need
to convince someone else.
FWIW, I use a helper function box or box_cast to do an
explicit cast.
-hg
.
- References:
- I think this is a bug...
- From: Peter Oliphant
- Re: I think this is a bug...
- From: Holger Grund
- Re: I think this is a bug...
- From: Peter Oliphant
- I think this is a bug...
- Prev by Date: Re: Form top bar lock up
- Next by Date: Re: Is There Any Reason to Even Use VC++ Anymore?
- Previous by thread: Re: I think this is a bug...
- Next by thread: string class and vc++.wank :)
- Index(es):
Relevant Pages
|