Skip to content
Prev 17456 / 63421 Next

RFC: rawConnection (was "loop connections")

dhinds at sonic.net wrote:
I think the cost of duplicating as.raw is worse than the cost of using 
extra memory.  If the lack of symmetry bothers you, a solution is to 
require a raw object as input.
In that case I wouldn't bother.  It's important to get it right; being 
maximally efficient is a second priority.

 > Currently, textConnection() makes a copy for "r" connections
I've been having an argument with some other people about something 
related to this.  I think they would say that the language doesn't 
support writing to a variable.

I don't know the right way to fix this.
If so, then a binary mode rawConnection (with mention of the way to 
convert in the Rd file) would be good enough for me.
I'd rather get it right now, but that doesn't have to mean including 
every bell and whistle someone (even me!) has suggested.

Duncan Murdoch