Re: string routines and code libraries

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"zoro" <ilzoro@xxxxxxxxx> wrote in message
news:1129989529.718483.182120@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
> I am new to C#, coming from Delphi.

Welcome!

I am also from the Delphi (and Borland C++) corner.
I think you'll find that the 'Hejlsberg-fenonemon' is very much present in
..NET. You'll learn C# in a jiffy! =)
But forget all you knew about strings. They are invariant in .NET and not as
cool as in Delphi.

I'm still waiting for .NET (and Java) to have a string class that have the
by-reference-but-with-copy-on-write-semantics as in Delphi. There is
something missing between String and StringBuilder. We sure need strings
like in Delphi for performance....

Anybody knows why we don't get such a class? If I think for 2 seconds I'd
imagine it would screw up the GC as every such string must be pinned to a
memory location. If anyone else could think for like 4 seconds or even a
minute, I would appriecate your input on why and why not.

I sure miss 'em....

Happy Strings
- Michael S


.



Relevant Pages

  • Re: Brass Tacks: The Fate of 64-bit Delphi
    ... > Borland to implement Delphi for 64 bits does not change the fact that ... this be true if each new version of Delphi sells more than the last ... Strings are pointers, so in that sense, yes, they are size dependent, ...
    (borland.public.delphi.non-technical)
  • TeamB, Borland, admit obvious
    ... Exhibit A: From Delphi 7 help. ... strings as using the Concat function: ... The plus operator is faster than Concat. ...
    (borland.public.delphi.non-technical)
  • Delphi 2009
    ... I upgraded to Delphi 2009 today, and I thought some potential CodeGear customers might like an opinion of someone with a lot of code. ... That failed miserably because MS's .Net package wouldn't install (despite it being a MS OS in an MS virtual machine... ... The only things that needed fixing were where the client and server programs communicated strings over a named pipe - they just had to be touched up to realize strings were in unicode - which is what I wanted anyways. ...
    (alt.comp.lang.borland-delphi)
  • Re: Cross platform password string encryption
    ... I happen to have solved it now, I ended up using the Delphi LockBox ... Also to those "posters" suggesting I use other languages, ... The consuming code doesn't use the library code in the right way. ... The consuming code is trying to pass strings to the routines and ...
    (sci.crypt)
  • Re: JSON Serialisation
    ... late and it seems like a cool way to handle objects as strings. ... by Delphi that I could use? ... JavaScript on the other hand, ... you can make a basic environment object accept values that are ...
    (alt.comp.lang.borland-delphi)