pdxiv / sk2sadat

Convert ScottKit to Scott Adams DAT format
GNU General Public License v2.0
1 stars 1 forks source link

Replace "println" with print "" #2

Closed pdxiv closed 3 years ago

pdxiv commented 3 years ago

To improve optimizations and reduce the space inside an action, it should be possible to (optionally?) replace println with print "" . This way, if println is used adjacent to a print statement (which it often is), the number of commands used in an action could be reduced.

pdxiv commented 3 years ago

If we create "long actions" we will have an infinite number of commands available in actions. There is then no need to save on println commands. Instead, we should try to save space in the message table, so that any print "" commands are replaced by println (unless "buckaroo mode" is invoked). The exception is when a println command is before or after a regular print command, in which case a newline should be added to the following or preceding print statement message text.

pdxiv commented 3 years ago

fixed in commit f155b9eef17be7efec8f0426c4fcbe5a0ba8b9d5