Matthew Flatt
ba56fd72da
racket/class: add dynamic-get-field' and
dynamic-set-field!'
2012-09-04 15:28:18 -06:00
Matthew Flatt
69d2adce4d
racket/gui: new-style error messages
2012-09-02 16:38:43 -06:00
Matthew Flatt
b4fea2ff36
fix `delay/thread' error when promise-running thread terminates
2012-08-29 09:32:54 -06:00
Matthew Flatt
b61f3f751c
port position-tracking clean-ups
...
Add `file-position*', which can return #f instead of raising
an exception when a port's position is unknown. Change
`make-input-port' and `make-output-port' to accept more
kinds of values as the initial position.
These changes make it possible to synchronize a port's
position with a `port-commit-peeked' action. It's ugly,
which I think reflect something broken about position
tracking in the port protocol (which seems difficult to fix
without breaking compaibility).
2012-08-28 16:04:41 -06:00
Robby Findler
fc03ab6c69
add a mention of the flat/chaperone/impersonator contract hierarchy to the contract docs
2012-08-28 13:19:05 -05:00
Matthew Flatt
763882f651
add port shortcut for `make-{input,output}-port'
...
Providing a port instead of a reading or writing procedure
redirects the read/write to the specified port. This shortcut
is kind of a hack, but the run-time system can easily streamline
the redirection when it's exposed this way.
Using the new redirection feature reduces overhead in
`with-output-to-bytes' and `pretty-print'.
2012-08-28 08:54:26 -06:00
Matthew Flatt
fe1cc4f009
doc repair
2012-08-27 20:17:06 -06:00
Matthew Flatt
cb95a99d68
change `transplant-{input,output}-port' to propagate buffering
...
Affects derived functions, such as `dup-output-port' and
`relocate-output-port', and uses in `pretty-print'.
2012-08-27 19:44:06 -06:00
Matthew Flatt
23722e64c2
change `exn:break:hang-up' handling to skip display
...
Since SIGHUP normally means that the output has gone away,
don't try to write to it.
Closes PR 13058 (although it doesn't solve the more general
problem that is noted in the PR)
2012-08-24 15:48:58 -06:00
Robby Findler
e4450e2705
make record-disappeared-uses call syntax-local-introduce
...
on the identifiers passed to it
2012-08-24 09:34:41 -05:00
Robby Findler
1ad2c75531
add the ability to specify #:parent to struct/dc (and fix struct/c to use it)
...
closes PR 13049
2012-08-23 18:59:11 -05:00
Matthew Flatt
ef525233a2
references: link "A parameter that..." to the definition of "parameter"
2012-08-22 10:28:56 -06:00
Asumu Takikawa
46ece20b09
Fix typo introduced by 965a74453f
...
(Moral of story: be careful with regexps)
2012-08-21 16:35:37 -04:00
Asumu Takikawa
9a65f9aaf0
Delete trailing whitespace
2012-08-21 16:20:26 -04:00
Asumu Takikawa
965a74453f
Add #:forall, #:∀ to contract-out
2012-08-21 16:20:26 -04:00
Asumu Takikawa
47cb06f842
Fix docs for reencode-input-port & reencode-output-port
...
Closes PR 10545
2012-08-18 00:34:54 -04:00
Asumu Takikawa
6665053dad
Fix contracts on several I/O functions
...
Closes PR 12599
2012-08-18 00:22:21 -04:00
Matthew Flatt
902016265b
docs for `for/vector': warn about intreaction with continuations
2012-08-16 13:11:42 -06:00
Matthew Flatt
6e2bb58cce
add a #:fill' clause to
for/vector' et al.
2012-08-15 09:32:55 -06:00
Matthew Flatt
23bca99ba1
adjust `local-expand' to add 'submodule property
2012-08-13 17:11:20 -06:00
Matthew Flatt
b043da6ea6
SIGHUP and SIGTERM -> exn:break:hang-up' and
exn:break:terminate'
...
The default uncaught-exception handler calls `exit' when it receives
one of the new exceptions.
2012-08-13 17:11:20 -06:00
Matthew Flatt
d38fa91792
doc fix
...
Closes PR 13007
2012-08-12 20:17:29 -06:00
Matthew Flatt
7aec4f6c7e
doc corrections
...
Number-grammar problems reported by Milo Arvidsson.
2012-08-11 06:42:24 -06:00
James Swaine
6271556e1d
Add GC display to future visualizer
2012-08-11 01:00:51 -05:00
Vincent St-Amour
a190ecfb7b
Fic generics docs.
...
Closes PR 12988.
2012-08-08 17:26:55 -04:00
Matthew Flatt
13d7a37eb6
re-align expt' and
flexpt' to match C99 pow() spec
...
Also, improve precision of some complex results to avoid
excessive `+nan.0's.
Closes PR 12935
2012-08-06 13:00:36 -06:00
Eric Dobson
b95dba9f19
Fix documentation on integer-sqrt/remainder. Closes PR 12971
2012-08-06 12:31:07 -04:00
Robby Findler
8a0b6549a5
adjust the contract error messages to follow the error message
...
conventions in 9.2.1 of the reference (altho the messages do
not yet do the extra level of indenting when a field is too
long, nor are there any field names ending in ...)
Also, fix the docs for the #:stronger argument to
make-contract, make-chaperone-contract, and make-flat-contract
2012-08-05 20:09:09 -05:00
Matthew Flatt
7c9e6d7193
improve port progress-evt guarantees; fix for `read-bytes-evt' et al.
...
A progress evt from a close input port must be initially ready,
and the primitive `peek-bytes-avail!' checks a progress evt
before checking whether the port is closed.
These changes resolve a race in `read-bytes-evt' and related evt
constructors.
2012-08-04 10:19:55 -06:00
Vincent St-Amour
800a328fe6
Fix documentation for packages and mutable lists.
...
As suggested by Matthew.
2012-07-31 17:12:30 -04:00
Kevin Tew
6b48d34867
[Distributed Places] added #:thunk and #:named keyword arguments to distributed place creation functions
2012-07-31 11:51:55 -06:00
Ryan Culpepper
d19137c998
fix name of function in docs
...
Closes PR 12950
2012-07-28 16:41:08 -04:00
Vincent St-Amour
52439d528b
Move mutable list functions to the compatibility collect.
...
Mutable pair functions from racket/base are not moved.
2012-07-27 16:49:05 -04:00
Vincent St-Amour
ab2226a19e
Add a `compatibility' collect for compatibility with other languages.
...
It includes `defmacro' and Chez-style modules (packages).
2012-07-27 16:49:05 -04:00
Asumu Takikawa
2dcf060774
Move engines from mzlib/thread to racket/engine
...
(they were previously called "coroutines" but
the term "engine" is less ambiguous)
2012-07-26 14:47:29 -04:00
Matthew Flatt
4c3dd00d49
fix `port-commit-peeked' and mid-stream EOFs
2012-07-26 06:14:35 -06:00
Matthew Flatt
11be722a0f
typo
2012-07-25 21:58:18 -06:00
Matthew Flatt
d1048406b5
typo
2012-07-25 21:32:33 -06:00
Matthew Flatt
7d894bfb63
Note require' of a
main' submodule for -t',
-l', and `-p'
...
In the output of `racket -h' and in the command-line docs.
Merge to v5.3
2012-07-25 20:07:23 -06:00
Asumu Takikawa
ea1636d4f1
Doc fixes reported by Gary Baumgartner
...
The typo on 'redex.racket-lang.org' still remains.
Relevant to PR 12680
Merge to v5.3
2012-07-23 13:10:05 -04:00
James Swaine
f0aaca0dde
Change future visualizer trace collection slightly to be more composable
2012-07-22 20:03:22 -05:00
James Swaine
df54f8460b
Fix future visualizer trace collection when running inside DrRacket
2012-07-22 20:03:21 -05:00
Eli Barzilay
476c270a66
Use a new evaluaor in "for.scrbl", have it require `racket/base' for syntax.
...
Also explicitly close the evaluator used in "block.scrbl".
Closes PR 12931.
2012-07-22 13:38:38 -04:00
Eli Barzilay
18883681a2
Convert all uses of (integer-in 0 255) to `byte?'.
2012-07-22 13:00:05 -04:00
Eli Barzilay
a6b20f01da
Use string-no-nuls?' and
bytes-no-nuls?' in more docs & error messages.
...
Also use `byte?' instead of (integer-in 0 255).
(This commit will most likely require some proof-reading.)
2012-07-22 13:00:05 -04:00
Eli Barzilay
c2fe7c4e35
Quick typo fix.
2012-07-22 10:11:37 -04:00
Asumu Takikawa
3582b57bcc
Move mzlib/defmacro => racket/defmacro
...
With both @bold and @italics warning against its use.
No @blink though.
2012-07-20 16:00:47 -04:00
Matthias Felleisen
6768136144
docs for revised system error message completed
2012-07-20 12:30:30 -04:00
Asumu Takikawa
e14c5d61e9
Allow guards for impersonatable struct type properties
2012-07-19 22:46:14 -04:00
Eli Barzilay
6565538b09
Disable the #:before-first' and
#:after-last' functionality in `add-between'.
...
Leave it working in splicing mode. I prefer doing that over always
splicing them, since that would make a less uniform interface, so I
rather keep all options open. There is no longer a `#:nothing' keyword,
which is the main point of this downgrade.
(See mailing list discussion on "no-argument" for the reason.)
2012-07-18 22:28:41 -04:00