Peter N Lewis wrote:
At 5:58 +0200 6/7/05, Frank Heckenbach wrote:
var p: ^String;
New (p, ActualLength);
I'm always hesitant to use Pascal's New in case it does weird things like many Pascals do to support Mark/Release/etc. It appears that GPC calls straight through to malloc/free, with little overhead and no messing around unless Mark/Release procedures are called.
Yes. (And quite frankly, Pascal without `New' would be quite a crippled language. For Mac Objects, besides many other things, you need `New' anyway, don't you?)
Frank