Re: how to stop late binding
- From: "Herfried K. Wagner [MVP]" <hirf-spam-me-here@xxxxxx>
- Date: Wed, 23 Nov 2005 11:43:41 +0100
"Boni" <oilia@nospam> schrieb:
Enable 'Option Strict On'. However, this will require explicit conversion of double to integer too (i = CInt(d)').I hate this. Even in C++ it is possible to convert double to int implicitely.
'Option Strict On' enforces explicit casts everywhere where a type incompatibility could occur or where information would get lost when casting.
Is it absolutely unflexible? I need only to switch off late binding. I have a huge project and I would like to avoid unnessesory changes.Or at lease go thru project and look myself. But compiler stops complainig after 100-th bug. Can I switch this off?
I do not think it's unflexible. You can turn on 'Option Strict On' on per-file basis and add the necessary cast operators to the source code.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
.
- References:
- how to stop late binding
- From: Boni
- Re: how to stop late binding
- From: Herfried K. Wagner [MVP]
- Re: how to stop late binding
- From: Boni
- how to stop late binding
- Prev by Date: Re: Format of the IP Address
- Next by Date: Re: please help on multithreading
- Previous by thread: Re: how to stop late binding
- Next by thread: Re: how to stop late binding
- Index(es):
Relevant Pages
|