roos adjustment

This commit is contained in:
2025-08-18 09:23:02 +02:00
parent ae43b87758
commit 7500283070
4 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@@ -5,3 +5,4 @@ compiled/
*.bak *.bak
\#* \#*
.\#* .\#*
/test.ini

View File

@@ -1,7 +1,7 @@
#lang info #lang info
(define pkg-authors '(hnmdijkema)) (define pkg-authors '(hnmdijkema))
(define version "0.20") (define version "0.2.1")
(define license 'Apache-2.0) (define license 'Apache-2.0)
;(define collection "simple-ini") ;(define collection "simple-ini")
(define pkg-desc "A Simple .ini file reader/writer for racket") (define pkg-desc "A Simple .ini file reader/writer for racket")

View File

@@ -21,7 +21,7 @@
(fail #f) (fail #f)
((file) file*) ((file) file*)
((file! f) (i-set! file* f) (-> this reload)) ((file! f) (i-set! file* f) (%-> this reload))
((reload) (i-set! content ((reload) (i-set! content
(if (not (eq? file* #f)) (if (not (eq? file* #f))

View File

@@ -77,7 +77,7 @@
Provides a @seclink["top" #:doc '(lib "roos/scribblings/roos.scrbl")]{Roos class} that gives object-oriented access to INI files using the underlying @racket[file->ini] parser system. The class offers methods to load, query, and update INI files using familiar object-style interactions.} Provides a @seclink["top" #:doc '(lib "roos/scribblings/roos.scrbl")]{Roos class} that gives object-oriented access to INI files using the underlying @racket[file->ini] parser system. The class offers methods to load, query, and update INI files using familiar object-style interactions.}
@defproc[(-! [ini roos-class*] [or/c path-string?]) roos-object*]{ @defproc[(%-! [ini roos-class*] [or/c path-string?]) roos-object*]{
Creates an @racket[ini] object. If a @racket[file] path is provided and the file exists, it is loaded immediately. Otherwise, an empty INI structure is created. Creates an @racket[ini] object. If a @racket[file] path is provided and the file exists, it is loaded immediately. Otherwise, an empty INI structure is created.
If no file is provided, the object operates in-memory only. Subsequent @racket[set!] operations will raise an error unless a file is later specified with @racket[(file!)]. If no file is provided, the object operates in-memory only. Subsequent @racket[set!] operations will raise an error unless a file is later specified with @racket[(file!)].