in reply to Re: Packing unsafe string for later context-based escaping
in thread Packing unsafe string for later context-based escaping
Thanks for your reply!
I believe I could write it in Python as well. The __str__ method would handle stringification (concrete method selection in our case). Scoping can be implemented in any language that has destructors (__del__ in Python's case) by using guard variables. Ditto C++ (via operator const string & IIRC).
UPDATE I was totally wrong about Python's scoping, looks like it's done another way.
Not sure how it can be done in Java and Javascript, though.
And... I'm a bit ashamed to ask, but... What is CUFP?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Packing unsafe string for later context-based escaping
by Eily (Monsignor) on Jan 05, 2016 at 19:30 UTC | |
by Dallaylaen (Chaplain) on Jan 05, 2016 at 19:40 UTC |