Artifact
072673562a48b27544a02bd6100df2ae1b8c0002:
- File
srfi/s23/error.sls
— part of check-in
[80c8c83034]
at
2016-07-07 18:11:39
on branch trunk
— initial import
(user:
ovenpasta@pizzahack.eu
size: 480)
0000: 23 21 72 36 72 73 0a 3b 3b 20 43 6f 70 79 72 69 #!r6rs.;; Copyri
0010: 67 68 74 20 28 63 29 20 32 30 30 39 20 44 65 72 ght (c) 2009 Der
0020: 69 63 6b 20 45 64 64 69 6e 67 74 6f 6e 2e 20 20 ick Eddington.
0030: 41 6c 6c 20 72 69 67 68 74 73 20 72 65 73 65 72 All rights reser
0040: 76 65 64 2e 0a 3b 3b 20 4c 69 63 65 6e 73 65 64 ved..;; Licensed
0050: 20 75 6e 64 65 72 20 61 6e 20 4d 49 54 2d 73 74 under an MIT-st
0060: 79 6c 65 20 6c 69 63 65 6e 73 65 2e 20 20 4d 79 yle license. My
0070: 20 6c 69 63 65 6e 73 65 20 69 73 20 69 6e 20 74 license is in t
0080: 68 65 20 66 69 6c 65 0a 3b 3b 20 6e 61 6d 65 64 he file.;; named
0090: 20 4c 49 43 45 4e 53 45 20 66 72 6f 6d 20 74 68 LICENSE from th
00a0: 65 20 6f 72 69 67 69 6e 61 6c 20 63 6f 6c 6c 65 e original colle
00b0: 63 74 69 6f 6e 20 74 68 69 73 20 66 69 6c 65 20 ction this file
00c0: 69 73 20 64 69 73 74 72 69 62 75 74 65 64 0a 3b is distributed.;
00d0: 3b 20 77 69 74 68 2e 20 20 49 66 20 74 68 69 73 ; with. If this
00e0: 20 66 69 6c 65 20 69 73 20 72 65 64 69 73 74 72 file is redistr
00f0: 69 62 75 74 65 64 20 77 69 74 68 20 73 6f 6d 65 ibuted with some
0100: 20 6f 74 68 65 72 20 63 6f 6c 6c 65 63 74 69 6f other collectio
0110: 6e 2c 20 6d 79 0a 3b 3b 20 6c 69 63 65 6e 73 65 n, my.;; license
0120: 20 6d 75 73 74 20 61 6c 73 6f 20 62 65 20 69 6e must also be in
0130: 63 6c 75 64 65 64 2e 0a 0a 28 6c 69 62 72 61 72 cluded...(librar
0140: 79 20 28 73 72 66 69 20 73 32 33 20 65 72 72 6f y (srfi s23 erro
0150: 72 29 0a 20 20 28 65 78 70 6f 72 74 0a 20 20 20 r). (export.
0160: 20 65 72 72 6f 72 29 0a 20 20 28 69 6d 70 6f 72 error). (impor
0170: 74 20 0a 20 20 20 20 28 72 65 6e 61 6d 65 20 28 t . (rename (
0180: 72 6e 72 73 20 62 61 73 65 29 20 28 65 72 72 6f rnrs base) (erro
0190: 72 20 72 6e 72 73 3a 65 72 72 6f 72 29 29 29 0a r rnrs:error))).
01a0: 20 20 20 20 0a 20 20 28 64 65 66 69 6e 65 20 28 . (define (
01b0: 65 72 72 6f 72 20 2e 20 61 72 67 73 29 0a 20 20 error . args).
01c0: 20 20 28 61 70 70 6c 79 20 72 6e 72 73 3a 65 72 (apply rnrs:er
01d0: 72 6f 72 20 23 46 20 61 72 67 73 29 29 0a 29 0a ror #F args)).).