Vincent St-Amour
c652afa894
Document surprising behavior of in-range
with floats and zero.
2017-04-17 20:23:28 -05:00
Matthew Flatt
fae55e83e2
history note for v6.9
2017-04-17 13:12:07 -06:00
Matthew Flatt
803d8ff0d5
fix launcher creation for gracket[-text]
on Mac OS
...
The repair in 71a43f34c8
fixed the creation of some launchers, but it
broke GUI launchers with a relative reference on Mac OS.
2017-04-16 15:51:28 -06:00
Leif Andersen
47a2d4a879
Fixed tests for log
function.
...
The test cases relied on arity and changing log to have an arity
of both 1 and 2 activated new (incorrect) tests. I fixed the
incorrect tests as they applied to the log function.
2017-04-16 15:34:13 -04:00
Ryan Culpepper
995f320918
fix in-query result checks with grouping
...
closes racket/db#8
merge to release branch
2017-04-15 12:19:31 -04:00
Leif Andersen
922b5f06e9
Make log also accept a base. ( #1667 )
...
Make `log` in `racket/base` optionally accept a second argument.
The second argument is the log `base`. The docs also recommend
`fllogb` when precision is important.
* Error message when base is 1
* Added docs.
* Add tests.
2017-04-15 10:40:41 -04:00
Robby Findler
6492226411
add a #:name argument to flat-contract-with-explanation
2017-04-13 10:19:20 -05:00
Robby Findler
e7f68472e5
the "I don't konw what name to give" name has changed; update the guide to reflect that
...
closes #1661
2017-04-13 09:37:25 -05:00
Robby Findler
b3d3bf7c01
improve the guide section on how to use the contract library
...
to build new combinators
2017-04-12 21:27:50 -05:00
Philip McGrath
8bb8365a38
Revise Racket Guide 7.8 Building New Contracts
...
to use late neg projections in the examples, rather val first projections.
2017-04-12 21:27:50 -05:00
Ben Greenman
1e29362dad
typo: error message in parse-command-line
2017-04-12 14:51:32 -04:00
Matthew Flatt
662fd84eda
raco: fix command name selection by prefix
...
Repairs a problem with 409321c03b
.
Merge to v6.9
2017-04-10 08:22:49 -06:00
Matthew Flatt
016b8009c5
repair "info-cache.rktd" assumption of relative paths
...
Fix for 459a74455c
to handle the case that a path
to record is not relative. The `raco pkg` tests
exposed the problem.
2017-04-09 10:53:05 -06:00
Ben Greenman
50f67cf6e4
remove @history
for flat contracts #:exercise
...
Remove the history annotation on `build-flat-contract` property
about removing the `#:exercise` keyword.
Because the keyword wasn't actually removed from the function,
only from the (incorrect) documentation. So there aren't any
legal programs that depend on the removed keyword argument.
2017-04-09 11:36:06 -04:00
Matthew Flatt
459a74455c
avoid platform-specific path conventions in "info-cache.rktd"
...
Store relative paths in "info-cache.rktd" (which corresponds,
roughly, to packages) in a platform-independent form, instead
of using the current platform's convention.
Using the current platform's covention works badly when
cross-compiling for Windows on Unix, since relative paths are used as
keys in the "info-cache.rktd" table. For example, updating a
pre-installed package on Windows mangles the mapping if the installer
is created from a cross-compiled installation.
2017-04-09 08:16:56 -06:00
Ben Greenman
3bb131ecb2
add #:generate
keyword to build-flat-contract-property
...
the public function was missing the `#:generate` keyword,
added this and documented why `#:exercise` is missing
2017-04-08 21:37:39 -04:00
Robby Findler
d224da3105
document the #:missing-party argument to raise-blame-error
...
closes #1658
2017-04-08 18:55:58 -05:00
Sam Tobin-Hochstadt
9d26d675a7
Provide srcloc when constructing define
in define/contract
. ( #1660 )
2017-04-08 14:38:59 -04:00
Vincent St-Amour
73d28d88d2
Post-release version for the v6.9 release
2017-04-07 13:30:52 -05:00
Matthew Flatt
5fb86dc55e
fix ad-hoc hash-ref
optimizaiton
...
Optimization to convert `(hash-ref <ht> <key> (lambda () <constant>))`
to `(hash-ref <ht> <key> <constant>)` didn't check that the `lambda`
for had zero argument.
Closes #1648
2017-03-30 18:45:26 -04:00
Matthew Flatt
92a0dcbcb0
fix problems with chaperoning/impersonating keyword functions
2017-03-29 12:26:48 -06:00
Matthew Flatt
1030e079c4
raco ctools docs: improve xref docs and mention "cext-lib" package
2017-03-28 19:11:44 -06:00
Ben Greenman
30aa951db8
gzip: use path-add-extension as default
...
instead of `string-append`-ing the extension,
because that doesn't work for all path strings
2017-03-26 20:58:59 -04:00
Ben Greenman
2cbd44d64d
add optional 'sep' argument to path-add-extension
...
New optional argument to 'path-add-extension',
a byte string to replace for the '.' in the argument path.
2017-03-26 20:58:53 -04:00
Matthew Flatt
e22a5da06c
find-relative-path: case-normalize for comparison by default
...
This change affects programs only on Windows. For example, `C:\a\b`
relative to `c:\A\c` is `..\b`, instead of not relative.
Closes #1603
2017-03-24 20:00:03 -06:00
Matthew Flatt
41e3deab97
racket/cmdline: fix table filtering when #:ps
is used
2017-03-24 17:28:22 -06:00
William G Hatch
144486dcc0
add more plugins to emacs section of guide ( #1510 )
...
Add more plugins to Emacs section of guide, including
a section for Evil Mode
2017-03-24 17:28:10 -06:00
Gustavo Massaccesi
cf22b1bc7d
add test for ormap
2017-03-24 17:09:17 -06:00
Alex Knauth
7163c6ad98
generics: optional scope argument for private macros ( #1644 )
...
* generics: optional scope arg for private macros
To make them more friendly to macros that expand to generics
* add tests for generic-method-table macro
2017-03-24 15:52:44 -07:00
Matthew Flatt
8da0be8031
fix relative references for license and acks in installer build
...
The process of creating an installer involves building "racket-index"
in user scope, but the license and acks files are normally only in
installation scope. An explicit targeting of the installation-scope
output needs to be disabled when the documentats are rendered to
user scope.
Closes #1635
2017-03-24 16:02:23 -06:00
Matthew Flatt
a49bd5dc00
fix config spec for installer build
...
This typo likely doesn't affect anything right now, but it
might one day.
2017-03-24 15:40:56 -06:00
Gustavo Massaccesi
409321c03b
raco: show all the matching commands for an ambiguous prefix
2017-03-24 13:16:36 -06:00
Matthew Flatt
056041bd07
document current-command-line-arguments
encoding
...
Closes #1641
2017-03-22 12:26:02 -06:00
Matthew Flatt
424906af0a
ffi/com: fix unsigned-int test
...
Closes #1633
2017-03-22 12:26:02 -06:00
Matthew Butterick
e08328c68c
unmisspell configure-runtime
2017-03-22 12:25:41 -06:00
Matthew Butterick
6493a502c0
use deftech
rather than emph
2017-03-22 12:25:41 -06:00
Matthew Butterick
8694b99608
update docs to use configure-runtime
submodule rather than obsolete syntax property
2017-03-22 12:25:41 -06:00
Matthew Butterick
333f602a70
Improve assq
example
...
Let me `assq` something: doesn’t it seem inapt to demonstrate this function with integers, when `eq?` doesn’t give consistent results for numbers?
2017-03-22 12:24:34 -06:00
Matthew Flatt
9f2db6a915
add history
annotations for racket/port
changes
...
Goes with 1309cf1649
.
2017-03-17 08:37:49 -06:00
Marc Burns
1309cf1649
Add procedures like port->X but close the port ( #1634 )
2017-03-16 15:52:43 -04:00
Ben Greenman
10aaff692b
[doc] link max <--> argmax
2017-03-12 22:33:02 -04:00
Robby Findler
faa385b337
small cleanup of contract
2017-03-11 13:06:22 -06:00
Robby Findler
9b987800fb
adjust things so that integer-in contracts can have other names
2017-03-08 09:31:33 -06:00
Ingo Blechschmidt
4107ee7ea0
fix tiny typo ( #1630 )
2017-03-07 22:20:56 -05:00
Robby Findler
f5c5db3b3d
fix a bug in recent and/c improvements and add proper printing for integer-in
2017-03-07 20:40:26 -06:00
Robby Findler
fe9288d0d5
remove suprious hash
2017-03-07 19:00:36 -06:00
Robby Findler
2febfb1dba
declare that examples that raise errors raise errors
2017-03-07 18:59:44 -06:00
Robby Findler
3a639d7794
improve interaction between natural?, exact-positive-integer?, exact-integer?,
...
and/c, and between/c (which implies <=/c and >=/c) so that they turn
themselves into integer-in when appropriate
for example, (contract-stronger? (integer-in 0 4) (and/c natural? (<=/c 4)))
returns #t
2017-03-07 16:38:35 -06:00
Robby Findler
87e024d55c
allow #f as arguments to integer-in
2017-03-07 16:27:18 -06:00
Robby Findler
7c3412957a
add the same fast path to contract? and chaperone-contract? that is already in flat-contract?
2017-03-07 16:27:18 -06:00