??? 03/06/06 22:31 Read: times |
#111445 - What type? Responding to: ???'s previous message |
Erik Malund said:
I (stupid foreigner) may have the wrong idea what "typed" means in this context, the dictionary is no help. Can you clarify? That's a really good question Erik. It's one of those things you know the meaning of untill someone asks you what it is ;-) I am no language expert but my definition of types is the number of intrinsic sorts of variables. A language is strongly typed if you cannot assign a variable of one type directly to one of another type. 8051 assembly language has two intrinsic sorts of variables (types), bits and bytes. The nature of the instruction set (language) is that you cannot accidentally assign one type directly to another type (the instructions just do not exist) so it is strongly typed. C has a different number of intrinsic sorts of variables (types), like int, char, float etc. It is poorly typed because you can quite legally assign one type to another. Notice I have specifically excluded types defined by the user (structs in C for example). HTH Ian |
Topic | Author | Date |
Keil C51 and Math | 01/01/70 00:00 | |
Eval version? | 01/01/70 00:00 | |
Not only but also | 01/01/70 00:00 | |
Come now | 01/01/70 00:00 | |
Come off it | 01/01/70 00:00 | |
poorly typed | 01/01/70 00:00 | |
Typing (sic) | 01/01/70 00:00 | |
Ian | 01/01/70 00:00 | |
What type? | 01/01/70 00:00 | |
any decent compiler will give you a warn | 01/01/70 00:00 | |
it depends | 01/01/70 00:00 | |
Get Promoted | 01/01/70 00:00 | |
Too much promotion! | 01/01/70 00:00 | |
Hells Bells | 01/01/70 00:00 | |
Ding Dong! | 01/01/70 00:00 | |
C vs assembler, take 655321 | 01/01/70 00:00 | |
anyone else will be a programmer in name | 01/01/70 00:00 | |
Programmer laziness | 01/01/70 00:00 | |
WebPage ? | 01/01/70 00:00 | |
Much different | 01/01/70 00:00 | |
And Also | 01/01/70 00:00 | |
Eh ? | 01/01/70 00:00 | |
C and C++ | 01/01/70 00:00 | |
Portable? | 01/01/70 00:00 | |
handle your microprocessor functi | 01/01/70 00:00 | |
Hm, | 01/01/70 00:00 | |
Keil does it | 01/01/70 00:00 | |
Floating point | 01/01/70 00:00 | |
Thanks, | 01/01/70 00:00 |