Do Microsoft commit Mistakes? I have a proof!

prabha_friend

Prabhakaran Karuppaih
Local time
Today, 22:11
Joined
Mar 22, 2009
Messages
1,026
Code:
weekdayname(Weekday as Long)
Why there is a Long when there are only 7 days? Can BYTE wont suffice?
 
sure byte can work, but they like to think BIG!
 
Microsoft certainly makes mistakes but that is not one of them.

For consistency, Long is used as a standard for all enumerated arguments. If Byte were used then some arguments that use multiple values implemented as additive binary would be limited to eight independent settings for a parameter.

Using a Byte doesn't gain anything anyway. On a 32 bit system where memory is four bytes wide, a Byte uses the same memory as a Long.
 

Users who are viewing this thread

Back
Top Bottom