Saturday, August 24, 2013

Old Translator – Removal (Sub-String Data Type)

The sub-string data type was used by the old translator to identify the sub-string functions (LEFT$, MID$, and RIGHT$) that can be used to assign part of a string variable.  The idea was more appropriate with the original String class that would make handling during run-time easy.  The String class has since been replaced with the Qt QString class, which has different requirements during run-time and this has been accounted for with the new sub-string assignment translation scheme (see posts on new design and with multiple assignments).

The sub-string data type is not needed in the new translator routines and has been removed.  The returning data type of the LEFT$, MID$ and RIGHT$ functions is now just a String like all of the other string functions.  For assignments with these functions, the new sub-string flag is used.  The AssignSubStr code was removed because it was replaced with the AssignLeft, AssignMid2, AssignMid3, AssignRight codes and the AssignListMix code was removed because the various AssignKeep codes replace its functionality (see posts referenced above).  See the commit log for other changes made to remove the sub-string data type.

[commit 71e97bffa2]

No comments:

Post a Comment

All comments and feedback welcomed, whether positive or negative.
(Anonymous comments are allowed, but comments with URL links or unrelated comments will be removed.)