In our previous episode, Sven Barth said:
> >>
> >> Right... I tend to forget about these... what would the correct way to
> >> copy an array of ref counted types? E.g. an "array of string"?
> >
> > copy () ? :-)
> 
> I thought about "copy", too, but how would you implement a generic 
> "concat" using "copy" (or even just an "array of String" one)?

(as said I only reacted on the other bit).

Not without creating a compiler magic function that does it for a refcounted
types as opposite to slice(). But then you start down a slippery slope
trying to create a list based language, and LISP already has been invented
:-)
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to