• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

C/C++ question about thrashing pointers

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.
Originally posted by: IHateMyJob2004
...
foo = foo - 1;
...

To summarize and agree with just about everyone on this thread:

Pointer arithmetic shady at best in numeric codes, and has no place in GUIs.
 
Originally posted by: Markbnj
Get a tool like PC-Lint and integrate it into your testing process, along with something like BoundsChecker. When these complacent types see what these tools produce they might have a come-to-jesus moment.

I'll second the recommendation for Lint. If you're a C/C++ programmer you NEED this tool.

Dave
 
PC-Lint is the bomb.

I'm glad I work in a place where everyone questions everything. At times, it is intimidating, but no lead would ever tell me to do something because another group was doing it that way.
 
Back
Top