OnlineWoerterBuecher.de
Internes

Lexikon


weak typing


Ng> 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)

N="left">IN additioN suitable coNteNts:
[ 2 ] [ = ] [ ag ] [ al ] [ am ] [ aN ] [ ar ] [ arc ] [ as ] [ AT ] [ at ] [ au ] [ B ] [ b ] [ ba ] [ be ] [ C ] [ C++ ] [ CA ] [ ca ] [ CAT ] [ cat ] [ ch ] [ ci ] [ co ] [ code ] [ com ] [ compile time ] [ D ] [ date ] [ de ] [ do ] [ du ] [ E ] [ ec ] [ ed ] [ eNumerated type ] [ er ] [ era ] [ error ] [ es ] [ exceptioN ] [ fi ] [ file ] [ fo ] [ for ] [ fr ] [ G ] [ ge ] [ gl ] [ gN ] [ gr ] [ gu ] [ h ] [ hat ] [ hr ] [ id ] [ ie ] [ il ] [ iN ] [ iNt ] [ io ] [ is ] [ it ] [ la ] [ laNguage ] [ ld ] [ Lex ] [ li ] [ ls ] [ ly ] [ ma ] [ maN ] [ mm ] [ mo ] [ mod ] [ module ] [ mp ] [ N ] [ Na ] [ NB ] [ Ne ] [ Nf ] [ Ng ] [ Ni ] [ No ] [ Ns ] [ NT ] [ Nu ] [ O ] [ om ] [ op ] [ optioN ] [ pa ] [ pe ] [ ph ] [ piNg ] [ pl ] [ pr ] [ program ] [ programmer ] [ programmiNg ] [ pt ] [ query ] [ rc ] [ re ] [ ro ] [ ru ] [ S ] [ sa ] [ se ] [ sm ] [ so ] [ st ] [ strict ] [ stroNgly typed ] [ stroNg typiNg ] [ T ] [ tc ] [ th ] [ to ] [ tr ] [ troN ] [ type ] [ ua ] [ um ] [ vi ] [ weakly typed ] [ wiN ]






Go Back ]

Free On-line Dictionary of Computing

Copyright © by OnlineWoerterBuecher.de - (5211 Reads)

All logos and trademarks in this site are property of their respective owner.

Page Generation in 0.0922 Seconds, with 16 Database-Queries
Zurück zur Startseite