Overloaded expression

From Wikipedia, the free encyclopedia
Jump to: navigation, search

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


Personal tools
Namespaces
Variants
Actions
Navigation
Interaction
Toolbox
Print/export