Tango 0.97 RC1 released

Lars Ivar Igesund larsivar at igesund.net
Tue Apr 17 01:19:40 PDT 2007


Justin C Calvarese wrote:
> 
> For example, I was trying to write a simple example using Tango, and I
> quickly discovered that I was having a hard time figuring out how to do
> anything. It's not than I think that Tango is inferior in any way to
> Phobos, it's just that I've become accustomed to the "Phobos way". If I
> want to replace one set of characters with another set of characters, I
> knew that all I have to do is use the replace function in std.string.
> When I tried to do a similar operation with Tango, I felt and
> embarrassed at my ineptitude (I suspect it's a simple matter of using a
> String object and using the right member function, but I couldn't get
> anything to work).

No reason to feel embarrassed, Tango _is_ different from Phobos. Tango
having a String class don't mean that there aren't any free functions to do
string handling though. Maybe

http://www.dsource.org/projects/tango/wiki/TextReplaceExample

can lead you in the right direction?

-- 
Lars Ivar Igesund
blog at http://larsivi.net
DSource, #d.tango & #D: larsivi
Dancing the Tango



More information about the Digitalmars-d-announce mailing list