Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> A B@; # B is a pointer to type A

IIRC that's how Pascal did it, using a caret ^ for denoting a pointer.



Kind of.

A pointer to type A is:

     var B: ^A
The parser knows it is a declaration because of the var, and it knows ^A is the type, because of the colon. That it is a caret does not really matter here


Yeah, now only if Pascal had used curly braces, all could be right in the world :-)


I don't know about Pascal, but AT&T allowed anyone to write a C compiler without needing a license. (C++, too, I know because I asked AT&T's lawyers.)


Arh.... But then it wouldn't be Pascal ><


Yes! As he said - all would be right with the world =)


It was more about AT&T monopoly I believe :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: