[Opensim-dev] Globally avaibability of config options (?)

Stefan Andersson stefan at tribalmedia.se
Fri Oct 19 13:03:05 UTC 2007


We try to follow a layering approach, and an 'tell don't ask' approach, which would mean that the application pulls out the settings and feed them to your code, typically thru constructor initialization.
 
Code acessing global singletons tend to get tangly and difficult to follow.
/Stefan



> Date: Fri, 19 Oct 2007 08:37:38 +0200> From: Gerhard.Duennebeil at arcs.ac.at> To: opensim-dev at lists.berlios.de> Subject: [Opensim-dev] Globally avaibability of config options (?)> > Hello everybody,> > I'd like to have the ini-File-options (as well as maybe the commandline options) available in my piece of code, the meshing support for nono-trivial prim shapes.> > As a lot of its uses is completely local (debug behaviour, special settings, ...) there is no sense in distributing this through all layers between my code and the application.> > Hence it would make sense to create a global "Settings" object similar to the MainLog object.> > I can do that and create a patch for that but wanted to adress the issue before hand and get second opinions.> > Best regards> Gerhard> _______________________________________________> Opensim-dev mailing list> Opensim-dev at lists.berlios.de> https://lists.berlios.de/mailman/listinfo/opensim-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-dev/attachments/20071019/72483adb/attachment-0001.html>


More information about the Opensim-dev mailing list