Re: question(s) about declaring variables
- From: "Michael C" <mculley@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 28 Jun 2005 08:01:59 +1000
"spacewarp" <sureshsitaula@xxxxxxxxx> wrote in message
news:1119851711.614989.110510@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> One question, Michael : Are 1000& and CLng(1000) exactly the same?
>
> I mean, doesn't the latter come at a slight performance loss of calling
> a function and the associated conversion of an integer to a long value?
> Or is CLng(1000) directly evaluated as 1000& during compilation?
They compile to the exact same assembly code so no performance hit at all.
Michael
.
- Follow-Ups:
- Re: question(s) about declaring variables
- From: MikeD
- Re: question(s) about declaring variables
- References:
- question(s) about declaring variables
- From: Steve Easton
- Re: question(s) about declaring variables
- From: Mike D Sutton
- Re: question(s) about declaring variables
- From: Steve Easton
- Re: question(s) about declaring variables
- From: Mike D Sutton
- Re: question(s) about declaring variables
- From: Larry Serflaten
- Re: question(s) about declaring variables
- From: Michael C
- Re: question(s) about declaring variables
- From: spacewarp
- question(s) about declaring variables
- Prev by Date: Re: question(s) about declaring variables
- Next by Date: Re: question(s) about declaring variables
- Previous by thread: Re: question(s) about declaring variables
- Next by thread: Re: question(s) about declaring variables
- Index(es):