Opened 7 years ago

Last modified 7 years ago

#211 new task

MS Visual Studio cannot compile save_do with so many nested if's

Reported by: Gary J. Ferland Owned by: nobody
Priority: major Milestone:
Component: etc Version: trunk
Keywords: microsoft visual studio Cc:


">..\source\save_do.cpp(3624): fatal error C1061: compiler limit : blocks nested too deeply".

so microsoft visual studio cannot compile c10 or later

Change History (1)

comment:1 Changed 7 years ago by rjrw

A possibly-useful comparison here is parse_commands.cpp, which now uses a form of the Command pattern. This allows arbitrary numbers of options.

The command pattern also allows the implementation of the various save commands to be moved into the packages which implement the data structures, which might improve code cohesion.

Implementing this would be tedious, but can be done piecemeal (see e.g. the commit log for parse_commands.cpp).

Note: See TracTickets for help on using tickets.