[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pbmserv-dev] Adding a command to a game



Lyman Hurd wrote:

Well yes, come to think of it there are somw drawbacks
to what I was proposing. For example, if you do a
"show" rather than a "showas" you are not in the
context of any specific user.


Thanks, Lyman. Actually, user context (as in "showas") is not important for SGF. The format is absolute, and the programs that display the games usually have "board flip" options.

Possibly adding a command is the most reasonable
option...

As noted virtual methods can have a default
implementation usable by all classes that do not
specifically override it, or in some cases a method
can be made "pure virtual" in which case any concrete
class that extends the base is forced to override it.


Still working on it. The "not implemented" default works, but I'm getting a segmentation fault when the Go version of the function is called.