Questions about COBOL data types arise all too regularly on this forum. In fact, even seasoned COBOL programmers do get confused about some of the answers. I think this is the single most misunderstood area of COBOL, and the most controversial, and the most "improvised" by compiler designers. I think a FAQ (a thorough FAQ) is in order.
Another thing: are all these "exotic" data types helpful to the COBOL language, or are they mostly contributing to the isolation of COBOL from other computer languages?
Some COBOL compilers have been designed with data types that match the types used by most modern languages. For example, Nonstop COBOL programmers use the type NATIVE to duplicate the type INTEGER which is used by most other languages - eliminating puzzling questions about how much memory is used by data elements, and allowing data to be passed to and from COBOL with less headaches.
Isn't it about time that COBOL got rid of all these COMPs et al? Do those types really add anything to the language, or do they hurt it?
What do you think?
Remember, most other languages were largely designed by the programmers who use them. Must we leave the design of COBOL in the hands of committees and vendors?
Dimandja
Another thing: are all these "exotic" data types helpful to the COBOL language, or are they mostly contributing to the isolation of COBOL from other computer languages?
Some COBOL compilers have been designed with data types that match the types used by most modern languages. For example, Nonstop COBOL programmers use the type NATIVE to duplicate the type INTEGER which is used by most other languages - eliminating puzzling questions about how much memory is used by data elements, and allowing data to be passed to and from COBOL with less headaches.
Isn't it about time that COBOL got rid of all these COMPs et al? Do those types really add anything to the language, or do they hurt it?
What do you think?
Remember, most other languages were largely designed by the programmers who use them. Must we leave the design of COBOL in the hands of committees and vendors?
Dimandja