#10396: [PATCHSET] Make Haiku userland compile and work with Clang ---------------------------+---------------------------- Reporter: js | Owner: bonefish Type: enhancement | Status: reopened Priority: normal | Milestone: R1/beta1 Component: - General | Version: R1/Development Resolution: | Keywords: clang Blocked By: | Blocking: Has a Patch: 1 | Platform: All ---------------------------+---------------------------- Comment (by js): String corruption does indeed sound like the ++ that was accidentally added in glibc by 0006. Can you try hrev46660? About the Type* operator(): This basically makes sure that you can use it like a normal array, i.e. it gets automatically converted to a pointer, just like a normal array. The idea was that you can easily switch code to BStackOrHeapArray. The only thing that of course will break is sizeof(). But sizeof on an array isn't a good idea anyway, as just switching that array to a pointer will also break it. Not having that operator would mean code needs to be changed in ugly ways. E.g. if you want to pass a pointer to the data of the array (which seems to be the most common operation), you'd need to change it to &foo[0] instead of foo. -- Ticket URL: <http://dev.haiku-os.org/ticket/10396#comment:18> Haiku <http://dev.haiku-os.org> Haiku - the operating system.