On Tuesday, July 18, 2017 at 12:04:03 PM UTC-5, Edward K. Ream wrote:

And I'm still unsure about the import code.
>

*First idea*:  The import code should be fine. This is just a special case 
of the principle that code that doesn't use the v.lines property can use 
v._bodyString freely.

*Second idea*:  Oh my, the following seems wrong now:

> whoever uses directly _bodyString, and don't use new lines property 
should be pretty safe. The only way to see the problem is if one uses new 
property lines to read lines and someone has set _bodyString directly.

The problem is that "someone" could include plugin writers.

So *most* of the time, including during our standard unit tests, everything 
will just work. But we can't be sure that a plugin hasn't set _bodyString 
directly.

I think my ongoing confusion about this is not a good sign.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to