New Version: 2018.02.12 1.4.1.13441
|
02-22-2018, 07:10 PM
(This post was last modified: 02-22-2018 07:11 PM by toml_12953.)
Post: #29
|
|||
|
|||
RE: New Version: 2018.02.12 1.4.1.13441
(02-22-2018 11:54 AM)Carlos295pz Wrote:(02-21-2018 10:55 PM)toml_12953 Wrote: Like adding pointers, datatype specifiers (like INT, REAL, STRING) Yeah, but the code isn't as clean. Example: record MyType Name as string DOB as string DateOfHire as string salary as real end record UserRec(1000) as MyType UserRec(1).Name="Tom" UserRec(1).DOB="1968-09-11" UserRec(1).DateOfHire="1989-03-01" UserRec(1).salary=109234.17 Later on in the program, you know just what is being worked on by the field name after the dot. Coding is much cleaner than having to take an element out of a list. Quick, what kind of data is stored in L1(3)? How about UserRec(2).DateOfHire ? Which one is clearer as to what the data is and easier to remember? Am I the only person who's writing heavy-duty programs for the Prime? Programs with hundreds of lines and lots of data? Programs that may have to be maintained by someone else? Tom L Cui bono? |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)