[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: const char* typedefs
- From: nobody <nobody+lua-list@...>
- Date: Tue, 6 Feb 2018 05:00:33 +0100
On 2018-02-05 23:50, Paige DePol wrote:
They also like putting the * for pointers on the variable name, which
is what Lua does as well. My previous experience with Obj-C usually
put the * with the type, which makes more sense to me, but I am now
used to putting it with the var name so either way works.
That's because in C
Foo* bar, baz;
probably isn't what you want, and with
Foo *bar, baz;
it's easier to notice.
 bar is a pointer, baz isn't.