Nikhil Marathe <[EMAIL PROTECTED]> wrote:
> On Sat, Mar 1, 2008 at 6:07 AM, Slava Pestov <[EMAIL PROTECTED]> wrote:
>> On 29-Feb-08, at 9:23 AM, Nikhil Marathe wrote:
>> > I was wondering if anybody has already added a preferences
>> > vocabulary similar to Python's ConfigParser ( http://
>> > docs.python.org/lib/module-ConfigParser.html )
>> > If not, well I'm already hacking on it.
> 
>> Wouldn't this work?
>>
>> : read-preferences ( -- hash )
>>      preferences-file run-file ;
>>
>> : write-preferences ( hash -- )
>>      preferences-file [ . ] with-file-writer ;
> 
> Oh ya!
> Sorry I didn't think about that.


How should anybody know that factor interprets the INI format!?
:-)


-- 
Web (en): http://www.no-spoon.de/ -*- Web (de): http://www.frell.de/


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to