Comments on: Relationship Advice http://www.geekherocomic.com/2009/03/27/relationship-advice/ The geeky adventures of Randie Tue, 09 Feb 2010 12:36:17 +0000 http://wordpress.org/?v=2.8.4 hourly 1 By: sssnakecharmer http://www.geekherocomic.com/2009/03/27/relationship-advice/comment-page-1/#comment-1866 sssnakecharmer Sat, 18 Apr 2009 07:52:26 +0000 http://www.geekherocomic.com/?p=640#comment-1866 I DON'T AGREE WITH : void (*complain) (Woman *); NO, NO, NO!!! But lol @ the rest Bu tnot all women complain :) I DON’T AGREE WITH : void (*complain) (Woman *);
NO, NO, NO!!!
But lol @ the rest
Bu tnot all women complain :)

]]>
By: etb http://www.geekherocomic.com/2009/03/27/relationship-advice/comment-page-1/#comment-1694 etb Thu, 02 Apr 2009 17:44:18 +0000 http://www.geekherocomic.com/?p=640#comment-1694 Wilma, Moss and Ross' mom are waiting too... (joking) I see your point. It is a pity anyhow... I always liked all-including cast pages. Wilma, Moss and Ross’ mom are waiting too… (joking) I see your point.
It is a pity anyhow… I always liked all-including cast pages.

]]>
By: Salvatore Iovene http://www.geekherocomic.com/2009/03/27/relationship-advice/comment-page-1/#comment-1626 Salvatore Iovene Mon, 30 Mar 2009 07:41:00 +0000 http://www.geekherocomic.com/?p=640#comment-1626 @etb, I'll add Aashna soon, when there's more strips about here and her personality is defined. Mike and Joe aren't important enough to make it to the cast page :-) @etb, I’ll add Aashna soon, when there’s more strips about here and her personality is defined. Mike and Joe aren’t important enough to make it to the cast page :-)

]]>
By: etb http://www.geekherocomic.com/2009/03/27/relationship-advice/comment-page-1/#comment-1623 etb Sun, 29 Mar 2009 20:58:28 +0000 http://www.geekherocomic.com/?p=640#comment-1623 The cast section does need to be updated again: Aashna, Mike and Joe are waiting! The cast section does need to be updated again: Aashna, Mike and Joe are waiting!

]]>
By: sick_oscar http://www.geekherocomic.com/2009/03/27/relationship-advice/comment-page-1/#comment-1622 sick_oscar Sat, 28 Mar 2009 16:13:51 +0000 http://www.geekherocomic.com/?p=640#comment-1622 lol lol

]]>
By: Hirato http://www.geekherocomic.com/2009/03/27/relationship-advice/comment-page-1/#comment-1620 Hirato Sat, 28 Mar 2009 11:42:22 +0000 http://www.geekherocomic.com/?p=640#comment-1620 the official GNU one :P women() { goto bathroom; bathroom: while (1) ; } the official GNU one :P

women()
{
goto bathroom;
bathroom:
while (1) ;
}

]]>
By: etb http://www.geekherocomic.com/2009/03/27/relationship-advice/comment-page-1/#comment-1618 etb Sat, 28 Mar 2009 10:43:21 +0000 http://www.geekherocomic.com/?p=640#comment-1618 @Bobby you must be very careful about what you say while there are language lawyers around... ;) To be completely reserved an identifier must start with an underscore and having an uppercase letter or an other underscore as second character. If the identifier only starts with an underscore it is reserved only in the ordinary and tag name space. Standard 7.1.3 . As strange it might seem, in C (not C++) using the label _hello: or using the identifier a__b is legit. Unsing typedef struct c c; works also in C++, but it unneeded. Anyway, you are right about the main point, in a standard compliant C compiler the tag and ordinary name space are separate, no need to invent a new name. Old compilers get confused, but newer should not anymore (surely it does not gcc 4.3.3) The correct struct definition would be: typedef struct Woman Woman; struct Woman { int age; /* TODO: implement these functions. */ void (*complain) (Woman *); void (*cook) (Woman *); void (*clean) (Woman *); /* These functions should be enough. */ }; @Bobby
you must be very careful about what you say while there are language lawyers around… ;)

To be completely reserved an identifier must start with an underscore and having an uppercase letter or an other underscore as second character.
If the identifier only starts with an underscore it is reserved only in the ordinary and tag name space. Standard 7.1.3 .
As strange it might seem, in C (not C++) using the label _hello: or using the identifier a__b is legit.

Unsing typedef struct c c; works also in C++, but it unneeded.

Anyway, you are right about the main point, in a standard compliant C compiler the tag and ordinary name space are separate, no need to invent a new name. Old compilers get confused, but newer should not anymore (surely it does not gcc 4.3.3)

The correct struct definition would be:

typedef struct Woman Woman;
struct Woman
{
int age;

/* TODO: implement these functions. */
void (*complain) (Woman *);
void (*cook) (Woman *);
void (*clean) (Woman *);
/* These functions should be enough. */
};

]]>
By: Salvatore Iovene http://www.geekherocomic.com/2009/03/27/relationship-advice/comment-page-1/#comment-1616 Salvatore Iovene Sat, 28 Mar 2009 06:53:10 +0000 http://www.geekherocomic.com/?p=640#comment-1616 @protest, don't get too excited... it was a special week :) We're back to the 3-a-week schedule next week :( @protest, don’t get too excited… it was a special week :) We’re back to the 3-a-week schedule next week :(

]]>
By: Bobby http://www.geekherocomic.com/2009/03/27/relationship-advice/comment-page-1/#comment-1614 Bobby Fri, 27 Mar 2009 23:35:12 +0000 http://www.geekherocomic.com/?p=640#comment-1614 Actually, in C you can do: typedef struct Foo { ... } Foo; The typedef can have the same name as the structure tag itself, no need for the extra underscore. In fact, identifiers beginning with an underscore are reserved for use by the system headers and such, so should not be used for this. Using the same name for both parts might break in C++ though, I'm not sure. Actually, in C you can do:

typedef struct Foo { … } Foo;

The typedef can have the same name as the structure tag itself, no need for the extra underscore. In fact, identifiers beginning with an underscore are reserved for use by the system headers and such, so should not be used for this.

Using the same name for both parts might break in C++ though, I’m not sure.

]]>
By: protest http://www.geekherocomic.com/2009/03/27/relationship-advice/comment-page-1/#comment-1613 protest Fri, 27 Mar 2009 21:04:04 +0000 http://www.geekherocomic.com/?p=640#comment-1613 My dream has come true! You're updating daily! Woohoo! My dream has come true! You’re updating daily! Woohoo!

]]>