ArrayType, ArrayType2 lazarus / 61-Beginners ---------------------------------------------------------------------- Pasqualish · 2016-07-20 06:22 The documentation for the Slice function in the System unit has this prototype: function Slice(   const A: ArrayType;   ACount: Integer ):ArrayType2; Are ArrayType and ArrayType2 actual types, are just used for documentation purposes? ---------------------------------------------------------------------- Thaddy · 2016-07-20 06:35 It is indeed only to document. Grepping the sources show it only shows up in the documentation sources. You could have tried that yourself In general I strongly recommend to grep first and ask later. Slice just returns a sub array (slice) with the same type as the array that is passed as a parameter. [edit] but that documentation is wrong because it suggests because of Pascal conventions that ArrayType <> ArrayType2 where in fact the arrays are and must be of the same type. I will file a bug report. ---------------------------------------------------------------------- Pasqualish · 2016-07-20 07:10 Quote from: Thaddy on July 20, 2016, 08:35:34 amIt is indeed only to document. Grepping the sources show it only shows up in the documentation sources. You could have tried that yourself In general I strongly recommend to grep first and ask later. I am used to seeing something like that documented as: function slice (const A: [some array type]): [another array type];  to prevent any confusion as to whether it was a real type or a representation for a variety of types. [] being used to show that there is more than one thing that can go there.  Or, alternatively, they could show the actual source code and comment on it, if that type, whatever it is, is not understandable. ---------------------------------------------------------------------- Thaddy · 2016-07-20 07:21 Me too. I entered a bug report in Mantis, because I think the naming is misleading. Good point. The bug id is 0030390