> From: Oskar Sandberg <md98-osa at nada.kth.se>
> Reply-To: freenet-dev at lists.sourceforge.net
> Date: Mon, 24 Apr 2000 20:16:30 +0200
> To: freenet-dev at lists.sourceforge.net
> Subject: Re: [Freenet-dev] Unacceptable globals (static)
> 
> 
> But there is no reason to have different timeouts. Why would one want to have
> that? If a timeout is good on insert, it is also good on request. Those
> numbers
> are meant to be global constants, anything particular to the message should be
> set in the classes. It is probably just a mistake that they are different.
Ok good, that makes me feel much better.

> 
> As for the code duplication, you are right that it is unnecessary. The way to
> do it, I guess, is to have a static "init" method of the Core, and let it take
> a Param object as an argument. The client could make any changes it needs to
> that object before passing it.
> 
>
Perfect, that init could also be called be called by Node from it's main
function.  The code is already written there.  We would need to move the
option defaults to Core.  I think Logger should also have a similar init
function for taking params.

I think you would be better for this job Oskar.  But I can start on this
tomorrow if you like.

Paul





_______________________________________________
Freenet-dev mailing list
Freenet-dev at lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/freenet-dev

Reply via email to