DGDanforth wrote:That feels like an "engineering" solution to a theory. What is a "string"?
I don't think we are talking about strings, and whether they can contain line-feeds (they can).
I also suspect that your example does not
require line-feeds; would this work?
Code: Select all
int train_X[6][6] = {{1, 1, 1, 0, 0, 0},{1, 0, 1, 0, 0, 0},{1, 1, 1, 0, 0, 0},{0, 0, 1, 1, 1, 0},{0, 0, 1, 0, 1, 0},{0, 0, 1, 1, 1, 0}};
What we are talking about is how we
represent strings in CP source code.
The current current way of making the
representation multi-line (which requires breaking the string and using a "+" symbol) is not really too onerous, it seems to me.
The
direct alternative has several difficulties as already pointed out.
Incidently, if you use a TextField Control to input a string it has a Multi Line option that allows you to directly input line breaks.