* slib rev2 -1+, <?, ...
@ 2003-12-17 20:08 Kevin Ryde
2004-01-10 22:42 ` Marius Vollmer
0 siblings, 1 reply; 2+ messages in thread
From: Kevin Ryde @ 2003-12-17 20:08 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 656 bytes --]
* slib.scm (-1+, <?, <=?, =?, >?, >=?): Define as aliases for 1-, <,
<=, =, >, >= respectively, required by slib 'rev2-procedures but no
longer in the guile core.
I hope this is the right way to go about this. Ie. if rev2-procedures
is in the features list then guile should be providing these defines.
I guess the alternative would be to drop it from the features list and
let slib make the necessary definitions. That'd lose the guile core
defines of other things like append! and substring-fill! though.
In the 1.6 branch -1+ still exists, but the others don't, so this
would be a proposal to add them there similarly too.
[-- Attachment #2: slib.scm.ref2.diff --]
[-- Type: text/plain, Size: 943 bytes --]
--- slib.scm.~1.40.~ 2003-04-07 08:05:00.000000000 +1000
+++ slib.scm 2003-12-17 17:24:26.000000000 +1000
@@ -21,7 +21,9 @@
implementation-vicinity library-vicinity home-vicinity
scheme-implementation-type scheme-implementation-version
output-port-width output-port-height array-indexes
- make-random-state require slib:error slib:exit slib:warn slib:eval
+ make-random-state
+ -1+ <? <=? =? >? >=?
+ require slib:error slib:exit slib:warn slib:eval
defmacro:eval logical:logand logical:logior logical:logxor
logical:lognot logical:ash logical:logcount logical:integer-length
logical:bit-extract logical:integer-expt logical:ipow-by-squaring
@@ -234,6 +236,16 @@
(set! seed (object->limited-string seed 50)))))
(seed->random-state seed)))
+;;; {rev2-procedures}
+;;;
+
+(define -1+ 1-)
+(define <? <)
+(define <=? <=)
+(define =? =)
+(define >? >)
+(define >=? >=)
+
;;; {Time}
;;;
[-- Attachment #3: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: slib rev2 -1+, <?, ...
2003-12-17 20:08 slib rev2 -1+, <?, Kevin Ryde
@ 2004-01-10 22:42 ` Marius Vollmer
0 siblings, 0 replies; 2+ messages in thread
From: Marius Vollmer @ 2004-01-10 22:42 UTC (permalink / raw)
Kevin Ryde <user42@zip.com.au> writes:
> In the 1.6 branch -1+ still exists, but the others don't, so this
> would be a proposal to add them there similarly too.
Ok, please do! Thanks!
--
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-01-10 22:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-17 20:08 slib rev2 -1+, <?, Kevin Ryde
2004-01-10 22:42 ` Marius Vollmer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).