User talk:Waldorf: Difference between revisions

no edit summary
(→‎Appropriate Tasks: Modularization)
No edit summary
Line 8:
:
:Modularization is important because we need article titles to be representative of what the article is about. An article named "Custom data types" is not a good name for an article about sharing data between multiple languages, while "Share data between C and another language" would be. --[[User:Short Circuit|Short Circuit]] 15:44, 26 February 2007 (EST)
::I am thinking about creating a number of well-contained tasks related to data representation. Some languages are strongly typed, some are weakly typed, some are statically typed, and some are dynamically typed. Each of the combinations of those attributes provides different abilities and approaches to defining data. There already exist tasks for defining structures and classes. I would like to add other tasks: Demonstrate how to determine or set the address of a variable. Demonstrate how to determine or set the minimum size (memory footprint) of a variable or data type. Demonstrate how to control the memory layout of fields within a data structure.
::Finally, I would like to develop a task to demonstrate how to make a data type that acts like a primitive data type but has programmer-defined characteristics such as a limited range of valid values. This task would include a demonstration, or discussion if the capability is built into the language, of how to implement the required range checking.
Anonymous user