#10396: [PATCHSET] Make Haiku userland compile and work with Clang ---------------------------+---------------------------- Reporter: js | Owner: bonefish Type: enhancement | Status: closed Priority: normal | Milestone: R1/beta1 Component: - General | Version: R1/Development Resolution: fixed | Keywords: clang Blocked By: | Blocking: Has a Patch: 1 | Platform: All ---------------------------+---------------------------- Comment (by stippi): No, problem, but you still don't quite understand what I mean. You don't need to explain to me about operator precedence, although that stuff is generally more fuzzy to me than other areas. However, I wrote that code, so as far as that is concerned, I understand it. I am talking about one new thing introduced by BStackOrHeapArray that one needs to understand here, which is that before the compiler can use the array operator, it needs to apply a pointer cast. If one knows that, it becomes clear why the compiler knows how to do the right thing in my example, and why a [] operator is not needed in BStackOrHeapArray. So the ''gain'' for me is not having to know an ''additional'' thing. Obviuosly I knew that my solution would require one more line to be written, I even pointed it out in that comment. So you don't need to remind me of that, but you need to ask yourself why I am Ok with it. The answer is simply that it is slightly more important to me not needing to know one more thing about the code than having to write one more line. That's all. I don't think "ugly" has anything to do with it. That is like thinking code needs to be short above anything else, which is certainly not true as simple as that. -- Ticket URL: <http://dev.haiku-os.org/ticket/10396#comment:26> Haiku <http://dev.haiku-os.org> Haiku - the operating system.