Hey guys, as I work through the process of implementing dialogs for the GNOME frontend I'm bound to come accross things that don't quite make sense to me, hopefully my questioning won't be *too* annoying.
The first such confusion is with ControlLog. Why does ControlLog provide a std::pair<Buffer::LogType, string> where the second item is the filename? I would've expected the controller to actually pass the contents of the logfile. It seems odd to me to have the frontends opening files. I see that xforms fl_load_browser() takes the filename, however is that the only way to do it in that frontend? On another front, why is it returning a std::pair at all. In general do we prefer a single method returning a pair to many methods returning individual arguments? i.e.something like: string filename(); Buffer::LogType logtype(); string logcontents(); Naturally I'm willing to make any of the changes necessary. :) Cheers, -- ======================================================================== | Michael Koziarski |"Conventional wisdom is often | | Data Engineer, Linux user | long on convention and short | | & Objectivist. | on wisdom" -- | | http://www.koziarski.com | Warren E. Buffett, BRK.A | ========================================================================