&&&&&&&&&&&&&&str

102 points by ohrv


rbr

In a similar vein, a friend of mine once tried to determine the deepest pointer type that gcc could compile. That is, he wrote a script that used binary search to find the longest int**...* type that could be compiled. I don't remember exactly but I think it was between 1000 and 2000 stars.

He then proceeded to use the group's cluster to compile an even larger and deeper pointer type. I don't remember how deep he got but it definitely helped. Fun times.

chrismorgan
ettolrach

Reminds me of how in Haskell you're limited to 62-tuples!

shanemhansen

"13 references ought to be enough for anybody".

Logically that's true. They turned it up to 11 and went two steps further.

fanf

Relatedly the C standard says a compiler must support at least “12 pointer, array, and function declarators (in any combinations) modifying an arithmetic, structure, union, or void type in a declaration”

rtpg

Reminds me of all the stuff in Haskell around tuples, where for some stuff it really is just "well we copied these typeclass instances for up to 64-uples...." ... I remember feeling quite incensed at the "unprincipled" nature of it all, but I'm sure it has lead to way less compiler churning.