Which one of the following would be the best use of qualified expression?

Phương Linh

New member
Which one of the following would be the best use of qualified expression?
A. Function overloaded with bit and integer types
B. Function overloaded with bit_vector and std_logic_vector
C. Function overloaded with bit_vector and std_logic
D. Function overloaded with std_logic_vector and bit
 
Answer: b
Explanation: In case of function overloading, where in one function the parameter is of bit_vector type and other is of std_logic_vector type, then it could be difficult to identify that which function is being called. Say, 0110 is the argument passed to function, one can’t identify its type by seeing. So, qualified expression must be used.
 

Tìm kiếm

Back
Top