...
ThisIsAClass* c = new ThisIsAClass;
c->ThisIsNotAClass = *(new int);
c->ThisIsNotAClassEither = (void(*)())new int; // oh shit nigga what are you doing
>>9
I think using char* makes it more clear that it's a char-pointer, even though the correct usage is char *, as in char *a, *b;, or char pointer-a, pointer-b;.
Name:
Anonymous2011-09-23 15:58
>>9
>Is there anyone who uses char* faggot?
Yes because it's easy to read. char* pig;
>>14
imo, "char* a, b" should create two char pointers. the possibility to create a char and a pointer to char in the same statement is completely unnecessary.
Second or first A, depending on whether it is exported or not.
Name:
Anonymous2011-09-23 16:18
>>16
You don't *create* char pointers you fucking mental midget nigger. You *declare* a pointer of type char. You suck. Go help another customer you low IQ bitch.
>>1
In C, I prefer variable_name. I only use capitalization in macros (ALL_CAPS) or typedefs (DataType) and functions using those typedefs (FooType_read() and BarType_read()). >>6
Definitely "char *str;" because the * is a type modifier just like in "char str[]" or "char (*getstr)(void)", and not part of the base type. >>22
The first one. But I don't mind other styles as long as they're consistent.
>>30
I love you, even though your opinions differ from mine.
Also, I have always found C's type modifier syntax to be confusing. I think the syntax for declaring a variable should be the same as for typecasting to it, like so: char* c1, c2; // Two pointers to char
int[20] i1, i2; // Two arrays of 20 ints.. Oh well, maybe I'm just weird.
Name:
Anonymous2011-09-24 2:39
>>32
Also, function pointer should look something like this: char(*)(void) getstr;
Or maybe like this: char(void)* getstr;
That is my honest opinion.
Name:
Anonymous2011-09-24 2:48
>>33
To sum it all up: types first, names second. No confusing bullshit.
while we're at the subject of incoherent and inconsistent syntactical design flaws, what's up with having to include headers to use some of the fundamental language constructs in c++? like placement new or typeid, weird!