<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>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.<BR>
<BR>
Code acessing global singletons tend to get tangly and difficult to follow.<BR>
<BR>/Stefan<BR><BR><BR>
<HR id=stopSpelling>
<BR>
> Date: Fri, 19 Oct 2007 08:37:38 +0200<BR>> From: Gerhard.Duennebeil@arcs.ac.at<BR>> To: opensim-dev@lists.berlios.de<BR>> Subject: [Opensim-dev] Globally avaibability of config options (?)<BR>> <BR>> Hello everybody,<BR>> <BR>> 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.<BR>> <BR>> 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.<BR>> <BR>> Hence it would make sense to create a global "Settings" object similar to the MainLog object.<BR>> <BR>> I can do that and create a patch for that but wanted to adress the issue before hand and get second opinions.<BR>> <BR>> Best regards<BR>> Gerhard<BR>> _______________________________________________<BR>> Opensim-dev mailing list<BR>> Opensim-dev@lists.berlios.de<BR>> https://lists.berlios.de/mailman/listinfo/opensim-dev<BR><BR></body>
</html>