Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Ian Bell
03/06/06 15:31
Read: 852 times
Northrepps
United Kingdom


 
#111445 - What type?
Responding to: Erik Malund'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


List of 29 messages in thread
TopicAuthorDate
Keil C51 and Math      Laki Matt      02/25/06 15:00      
   Eval version?      Andy Neil      02/25/06 16:48      
      Not only but also      Ian Bell      02/26/06 03:40      
         Come now      Andy Neil      02/27/06 12:22      
            Come off it      Ian Bell      02/27/06 15:00      
               poorly typed      Erik Malund      03/03/06 07:58      
                  Typing (sic)      Ian Bell      03/03/06 09:41      
                     Ian      Erik Malund      03/06/06 08:42      
                        What type?      Ian Bell      03/06/06 15:31      
                           any decent compiler will give you a warn      Erik Malund      03/06/06 15:39      
                              it depends      Neil Kurzman      03/06/06 17:58      
                                 Get Promoted      Ian Bell      03/07/06 15:45      
                                    Too much promotion!      Andy Neil      03/08/06 01:43      
                                       Hells Bells      Ian Bell      03/08/06 06:33      
                                          Ding Dong!      Andy Neil      03/08/06 09:20      
         C vs assembler, take 655321      Andy Peters      03/08/06 10:49      
            anyone else will be a programmer in name      Erik Malund      03/08/06 11:01      
            Programmer laziness      Ian Bell      03/08/06 11:11      
   WebPage ?      Laki Matt      02/26/06 06:31      
      Much different      Steve M. Taylor      02/26/06 09:51      
         And Also      Neil Kurzman      02/27/06 12:49      
            Eh ?      Steve M. Taylor      02/27/06 12:55      
             C and C++      Andy Neil      02/27/06 14:13      
         Portable?      Andy Neil      02/27/06 14:11      
      handle your microprocessor functi      Erik Malund      02/27/06 07:36      
         Hm,      Laki Matt      02/27/06 12:41      
            Keil does it      Neil Kurzman      02/27/06 12:51      
               Floating point      Andy Neil      02/27/06 15:00      
                  Thanks,      Laki Matt      02/27/06 16:21      

Back to Subject List