Mark Bernstein
- 活动总数 13
- 最后的活动
- 成员加入日期
- 关注 0 名用户
- 关注者数 0 名用户
- 投票数 0
- 订阅数 6
-
Mark Bernstein 创建了一个帖子, Safe Delete Clarification
I have a C++ class:class Train : public Transport{public: Train(); Train(const Mill&); Train(int what, int howMuch, ...); virtual ~ Train(); Money& TicketPrice(Locatio... -
-
Mark Bernstein 创建了一个帖子, Show Usages: what is a usage, exactly?
What is the definition of a "usage" for Show Usages?Two C++ situations in particular concern me. First, consider overloading:class A {... virtual void Mill(Sprocket*); virtual void Mill(Sproc... -
Mark Bernstein 创建了一个帖子, Move Method: am I doing it wrong?
I'm refactoring a large legacy class in ObjC++ which currently has about 250 methods. Most are tiny. For example, we have a bunch of accessors:class Widget { .... virtual PColor GetCol... -
-
Mark Bernstein 创建了一个帖子, Incompatible Pointer Types A* and A*
In refactoring a messy ViewController, I'm encountering an inspection that flags an error on this line: LayoutInfo *j=[self.mapView getLayout].PreviousInOutline(info,[self parent]); with th... -
Mark Bernstein 创建了一个帖子, Warning on a C++ Idiom
I make heavy use of the familiar C++ idiom that equates construction with resource allocation and destruction with resource release. For example: - (void) drawSomething: (NSGraphicsContext*) co...