![]() ![]() They specify some methods, but not their implementation. Interfaces are a very common concept in OOP languages. Also it looks like it cannot be used with a slice of length 0, unless it is a slice of an array of length 0. There is a type to store a slice of an array, but it can only be used during function calls, so no one ever uses it. There is a type to store sets of integers, but you cannot have more than 256 elements There is mutability xor aliasing, but only for strings There is automated reference counting to get memory safety, but only for strings and arrays (and also interfaces but we get to that later) It is twice as weird in FreePascal, because the developers cannot decide if they want to make their own language or be Delphi compatible. They always implement some language feature, but then put some weird, arbitrary restriction on it.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |