|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: Why Does Everyone Insist On Using Structs for Everything?!
I never said NEVER use structs :) . That's like getting a car and never ever riding your bike again...okay stupid analogy. *LOL* > Your node is a struct.... > > ;) > > My take is use the right tool for the job. > > You really don't need to worry about access > if your the only one using it, or if the data is non critical. > A lot of the times what your trying to protect will only hurt > the one who would change it if they attempted it.. so > considering that; if you have a simple task that requires a > data structure, and you don't need any functionality built in, > then really the class will only consist of the data members and > accessors. You add some overhead with the vtable; and in a critical > section of code that is called all of the time, this could be wasting > valuable clock cycles... > > Me 2 pence.. gearin' up fer Guinness.. mmmmm I can taste it now.. > > --> -----Original Message----- > --> From: Mike Main [mailto:anime6@earthlink.net] > --> Sent: Friday, March 17, 2000 2:51 PM > --> To: gameprogrammer@gameprogrammer.com > --> Subject: Why Does Everyone Insist On Using Structs for Everything?! > --> > --> > --> Why doesn't anyone ever use C++ for what it's good for? > --> Object oriented > --> programming? Everyone always seem to use structs. Giving > --> everything acess > --> to encaspulated members makes me want to scream! > --> AAAAARRRGGGGHHH!!!! Sorry > --> for the rant I had to get that off my chest :). > --> > --> > --> Sincerely, > --> > --> Mike > --> > --> ================================================================= > --> The GameProgrammer.Com mailing list is for the open discussion > --> of any topic related to the art, science, and business of > --> programming games. This list is especially tolerant of beginners. > --> We were all beginners once > --> > --> To SUBSCRIBE or UNSUBSCRIBE please visit: > --> http://gameprogrammer.com/mailinglist.html > --> > ================================================================= > The GameProgrammer.Com mailing list is for the open discussion > of any topic related to the art, science, and business of > programming games. This list is especially tolerant of beginners. > We were all beginners once > > To SUBSCRIBE or UNSUBSCRIBE please visit: > http://gameprogrammer.com/mailinglist.html > ================================================================= The GameProgrammer.Com mailing list is for the open discussion of any topic related to the art, science, and business of programming games. This list is especially tolerant of beginners. We were all beginners once To SUBSCRIBE or UNSUBSCRIBE please visit: http://gameprogrammer.com/mailinglist.html
|
|