Overloaded expression
|
|
This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed. (December 2009) |
In computer science an overloaded expression includes an ambiguous operator expression that can only be understood by considering the expression's operands. See Function overloading. For example, in Java, the "+" operator designates addition for numeric operands (with implicit type conversion) and concatenation for string operands.[1] Compilers can typically detect expressions with invalid combinations of operands and operators.
Languages that support overloading include C++, Java, and Ada.
[edit] Linguistics
In human linguistics, many words have multiple meanings, that depend on context and usage. For example, consider the sentence:
They saw the wood.
The word saw is an overloaded operator that could mean the past tense of to see or cutting the wood. However, in this case, the operands "they" and "wood" do not provide sufficient without context. Instances such as this complicate machine translation.
[edit] Notes
| This programming language-related article is a stub. You can help Wikipedia by expanding it. |