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 -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html GPC download signing key: ACB3 79B2 7EB2 B7A7 EFDE D101 CD02 4C9D 0FE0 E5E8