RE: [AD] [WIN] mt timer disable option

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> If we wanted to have an end-of-section marker, we could just use
> [] and make NULL section name be equivalent to the empty string.
> It's a bit hacky though, and kind of pointless if we change
> Allegro and recommend that people (in their own code) either use
> sections for everything, or for nothing at all.

I do not like the end of section marker, for the same reason you
mention. My vote would be to deprecate the NULL section, and add a
comment in the manual to say so, and to encourage people who want
to add sppecific data in a config file to do so with a section name.
another solution would be to rewrite the parser to have a different
syntax, like:

graphics = {
  gfx_card = "FB",
  width = "640",
  height = "480"
}

but this is probably overkill :)
this would allow nested sections though ...
the nice thing is that it would be possible for several users to
share a config file (on unix it's not a problem, but on dos or
windows, there's no such thing as a $HOME).

And using Lua, it would be a piece of cake, as it would require  just
a single Lua API call :)

Anyway, I'm rambling here.
And still tired, so please forgive me ...

-- 
Lyrian 



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/