Found 1 hit - Term: weak typing, Database: *, Strategy: prefix
- [1] : The Free On-line Dictionary of Computing (27 SEP 03)
weak typing
strict enforcement of type rules but with
well-defined exceptions or an explicit type-violation
mechanism.
weak typing is "friendlier" to the programmer than strong
typing, but catches fewer errors at compile time.
c and c++ are weakly typed, as they automatically coerce
many types e.g. ints and floats. e.g.
int a = 5;
float b = a;
they also allow ignore typedefs for the purposes of type
comparison; for example the following is allowed, which would
probably be disallowed in a strongly typed language:
typedef int date; / type to represent a date /
date a = 12345;
int b = a; / what does the coder intend? /
c++ is stricter than c in its handling of enumerated types:
enum animal cat=0,dog=2,ant=3;
enum animal a = cat; / nb the enum is optional in c++ /
enum animal b = 1; / this is a warning or error in c++ /
2000-07-04
see also:
type strong typing c c++ coerce ints
floats typedefs cat=0,dog=2,ant=3
Results 1 - 3 of 3 found about weak typing: Typing
>> T Words
Typing, definition of term: Typing
typing_pag1.html Weak
>> W Words
Weak, definition of term: Weak
weak_pag1.html Weak Force
>> W Words
Weak Force, definition of term: Weak Force
weak+force_pag1.html
Last accessed:2008/10/12 01:13:00 [Total processing time: 1 seconds] |