[MonoDevelop] Some changes to ambiences

Mike Krüger mkrueger at novell.com
Thu Nov 27 16:53:15 EST 2008


Hi

> On Thu, Nov 27, 2008 at 1:26 AM, Mike Krüger <mkrueger at novell.com> wrote:
> > Hi
> >
> > I've extended the ambiences a bit. They're now more flexible, can fly,
> > cook coffe etc.
> >
> > It's now possible to specify an OutputSettings object that can do
> > further formatting. This class also is responsible for generating
> > markup. The default one generates pango markup, but it would be easy to
> > print any other markup using OutputSettings.
> > (The ambiences have done that itself in the past)
> >
> > Therefore I changed the GetString to:
> >
> > public abstract string GetString (IDomVisitable domVisitable,
> > object settings);
> >
> > Why setting is an object ? Because on the caller side nothing changes.
> 
> Why not strongly typed overloads? These would work just as well, and
> are more usable -- plus you have compile-time type safety.
> 

Got some inspiration from wpf :). I've first had two overloads one with
flags and one with settings, but it lead to some code duplication. 

> Why void/ref? Why not just return a string?
> 
Ah I wanted to be able to put more than one post processor delegate in
the settings method, but changed it later.

Regards
Mike



More information about the Monodevelop-list mailing list