On 16/09/2014, at 5:14 PM, srean wrote:

> Oh I was aiming much lower, like eliminating copies of C strings to 
> std::string.

Well, varray[char] could be a good base. 

I could implement SubArray (in general). Varrays can't move or be resized.
They're variable length up to a bound. Pass by address, mutable.

SubArray would just be varray with start and end pos.
Or start and length.

There is a cost, getting either a C string in a stack buffer, or,
a C++ string onto the heap. However c_str() already pays that
price for C++ strings and already returns a varray[char] .

The way arrays and pointers work in Felix is still too confusing.
Even I can't figure it out :)


--
john skaller
skal...@users.sourceforge.net
http://felix-lang.org




------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to