?

Log in

No account? Create an account
The syntax for declaring a typedef name to a member function of a… - Silicon Rose [entries|archive|friends|userinfo]
Silicon Rose

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

[Oct. 15th, 2004|09:49 am]
Silicon Rose
[Current Mood |sleepysleepy]

The syntax for declaring a typedef name to a member function of a class has got to be the weirdest and most counter-intuitive syntax I've ever encountered.

typedef return-type (CClassName::*THISISYOURTYPEDEFNAME)(Parameters);

You basically define a prototype for a function with an additional * in the definition. That actually makes a reasonable amount of sense, but it isn't the way one (at least, not me) thinks when one is defining a typedef.

Oh well. That provided some excitement yesterday.

Been feeling sleepy of late. Hard to get out of bed. Haven't had much time in the evenings to do the usual video gaming or, for that matter, anything else.

I might participate in NaNoWriMo... especially since, at this rate, I'm not going to get anything written without participating. Too much to do.
LinkReply

Comments:
[User Picture]From: ketsugami
2004-10-15 10:44 am (UTC)
Ooh, do NaNo. I'll be happy to beta if you need it.
(Reply) (Thread)
From: (Anonymous)
2004-10-15 11:27 am (UTC)
Cool, thanks!

SR
(Reply) (Parent) (Thread)