Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Decrement operator
Message
From
02/09/2008 09:45:56
 
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01344042
Message ID:
01344110
Views:
13
>>Viv,
>>
>>It's debatable. But do confess you're cheating a bit
>
><g>
>
>>
>>And it doesn't know you're cheating. It stores the decremented value and does not refetch it
>>
>>I suspect it's by design and for performance reasons [ a dup will be faster than a load ]
>
>Guess so. I looked at your ildasm code and your test below confirms the performance benefit . But I'm not sure whether it's me or MS that's 'cheating' . It could certainly be argued that the decrement operation on ScaleFactor has not been completed when the value is assigned to i........


Oh, the assignment has been completed - see ildasm code - it just doesn't expect (hence the dup) it will be different.
You put a white pigeon in the hat, and transform it into a rabbit

>Regards,
>Viv
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform