<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#cccccc" text="#000000">
I
<blockquote cite="mid:48C6D4E7.8040503@gmx.net" type="cite">
  <pre wrap=""><!---->I fully agree with you. I would like the object oriented way of strings
also - but I stopped asking for that ;) There are a lot of advantages
over the small amount of disadvantages. Of course I dont like this one:

S := TString.Create('');

But a built in class TString that is managed by the compiler.



PS : Maybe i'm a littlebit more up to date about todays concepts of
object oriented languages - maybe because I know him personally
<a class="moz-txt-link-freetext" href="http://en.wikipedia.org/wiki/Bertrand_Meyer">http://en.wikipedia.org/wiki/Bertrand_Meyer</a>
There were a lot of interesting discussions, etc...  altough I dont like
Eiffel :)

and also this guy was one of my profs:
<a class="moz-txt-link-freetext" href="http://en.wikipedia.org/wiki/Niklaus_Wirth">http://en.wikipedia.org/wiki/Niklaus_Wirth</a>

greetings
_______________________________________________
fpc-devel maillist  -  <a class="moz-txt-link-abbreviated" href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freepascal.org/mailman/listinfo/fpc-devel">http://lists.freepascal.org/mailman/listinfo/fpc-devel</a>

  </pre>
</blockquote>
Jet another approach:<br>
<br>
var <br>
    s:string;<br>
   intStr:TInternalStringClass absolute s;<br>
<br>
TInternalStringClass(s).AsUTF8:='Some string';<br>
writeln('String length=',intStr.length);<br>
<br>
TMyStingClass=class(TInternalStringClass)<br>
class function LoadFromResource(nResId:integer)<br>
end;<br>
<br>
intStr.LoadFromResourcse(nResId);<br>
<br>
</body>
</html>