is this intentional?

S

SM Ryan

# >>This is one of the reasons why one should never use typedef to
# >>generate a "type" which is a pointer to something.
# >
# > I wouldn't say "never".
# [snip: good counter-example]
#
# Right, I should not have said "never", either.
# s/never/nearly never/
# I have done this in code of mine, too, until I realised that
# most of the time I just wanted to get around typing the extra

Really says something about the state of language design when you need
a catalog of odd rules to keep your programs comprehendable to yourself.
 
M

Michael Mair

SM said:
# >>This is one of the reasons why one should never use typedef to
# >>generate a "type" which is a pointer to something.
# >
# > I wouldn't say "never".
# [snip: good counter-example]
#
# Right, I should not have said "never", either.
# s/never/nearly never/
# I have done this in code of mine, too, until I realised that
# most of the time I just wanted to get around typing the extra

Really says something about the state of language design when you need
a catalog of odd rules to keep your programs comprehendable to yourself.

This was more about clarity and minimising the opportunity for
errors than comprehendability. As said above, I did not have a
problem or bugs in my code but the method has disadvantages if
someone else wants to work with the code.

Cheers
Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,159
Messages
2,570,879
Members
47,416
Latest member
LionelQ387

Latest Threads

Top