Matthew Flatt
ba56fd72da
racket/class: add dynamic-get-field' and
dynamic-set-field!'
2012-09-04 15:28:18 -06:00
Matthew Flatt
8bd5dbf7cc
ffi/unsafe: change `cast' to avoid pitfalls for you
...
The old `cast' didn't work right for a mismatch between
a pointer GCableness and the source or target types, and
it didn't work right for an GCable pointer with a non-zero
offset. While those pitfalls were documented, the first
of them definitely has been a source of bugs in code that
I wrote.
Also added `cpointer-gcable?'
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
9f9f91207f
ffi/com: add an ActiveX example to the docs
2012-09-01 16:05:37 -06:00
Matthew Flatt
eb7fd51d02
ffi/com: add `any ...' support for method arguments
...
Also allow `?' for the length of an array and suport VT_SAFEARRAY
arguments (mostly the same as VT_ARRAY).
2012-09-01 09:48:35 -06:00
Matthew Flatt
7b2e18afc5
scribble: for Latex output, use `\Ssection', etc. for section
...
A style override might change `\section' to `\chapter', etc.
2012-08-31 16:07:10 -06:00
Asumu Takikawa
cd23fd48cf
Comment and clarify top-level evaluation & barriers
2012-08-31 16:27:35 -04:00
Matthew Flatt
d841ec1bd0
propagate prefix repair to to scribble/jfp' and
scribble/lncs'
2012-08-31 07:33:08 -06:00
Matthew Flatt
d11e58b639
ffi/unsafe/atomic: add `in-atomic-mode?'
...
The new function can be useful for debugging, at least.
2012-08-31 07:33:08 -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
496bfd3b57
add anote about C-F6 and a pointer to how to search in
...
the keybindings window for more such bindings
2012-08-28 16:30:33 -05: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
876b703353
doc repair
...
Applied patch from Lee Duhem.
Closes PR 13042
2012-08-24 15:48:58 -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
Matthew Flatt
088d1dadb4
add ffi/unsafe/nsalloc' and
ffi/unsafe/nsstring'
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
Robby Findler
7647e94eee
add scale-to-fit to slideshow/pict
2012-08-22 22:06:07 -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
Matthew Flatt
3c744229e8
ffi/unsafe docs: improve `_cprocedure' docs
...
Among other improvements, add information about reachability of
callout arguments.
2012-08-21 08:42:33 -06:00
Robby Findler
33b89d6cb4
clarify control-based keybindings
...
closes PR 13043
2012-08-21 08:28:42 -05:00
Matthew Flatt
5e5e503859
scribble/manual: add #:normalize?' option to
deftech' et al.
2012-08-20 17:37:24 -06:00
Matthew Flatt
1ca5767684
fix docs for `deftech': mention case folding
2012-08-20 17:37:19 -06: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
7d20e0cbe2
Fix docs for radio-box%
...
Closes PR 13005
2012-08-18 00:23:16 -04:00
Asumu Takikawa
6665053dad
Fix contracts on several I/O functions
...
Closes PR 12599
2012-08-18 00:22:21 -04:00
Asumu Takikawa
c20f1ec573
Fix guide section 14.6.2
...
Closes PR 13039
2012-08-17 23:26:59 -04:00
Asumu Takikawa
798344d2c6
Additional guide fix by Lee Duhem
...
Relevant to PR 13034
2012-08-17 01:45:07 -04:00
Asumu Takikawa
65611c0ebb
Fix guide section 7.8.3
...
Closes PR 13035
2012-08-16 16:02:44 -04:00
Asumu Takikawa
99d63d1f08
Fix guide section 7.4
...
Closes PR 13034
2012-08-16 16:02:44 -04:00
Asumu Takikawa
02219bda91
Fix guide section 7.3.8
...
Closes PR 13033
2012-08-16 16:02:43 -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
Robby Findler
62fecb1b0b
fix mistakes in Guide 6.4
...
closes PR 13031
2012-08-15 09:24:32 -05:00
Robby Findler
d96d920cf9
rename contract-blueboxes.rktd to blueboxes.rktd
2012-08-14 16:20:47 -05: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
Vincent St-Amour
0fb4ab947a
Remove documentation for methods that don't exist.
2012-08-13 17:58:44 -04:00
Matthew Flatt
bb3545ddf7
ffi/unsafe/custodian: #:atexit?' ->
#:at-exit?'
2012-08-12 20:25:47 -06:00
Matthew Flatt
42ef79c2ad
add `ffi/unsafe/custodian'
2012-08-12 20:17:29 -06:00
Matthew Flatt
5116f51503
try to clarify gradient docs
2012-08-12 20:17:29 -06:00
Matthew Flatt
d38fa91792
doc fix
...
Closes PR 13007
2012-08-12 20:17:29 -06:00
Robby Findler
0c6734f782
Add the contents of the "blue boxes" in the docs to the upper-right
...
corner of the definitions window, based on the information that check
syntax computes
This commit contains two separate changes to make this work:
- adding a new renderer, based on the text renderer, that
pulls out the contents of the blue boxes and saves them
in the doc/ directories (specifically in the files named
contract-blueboxes.rktd)
- extend check syntax to use and display the information
build by the new renderer
2012-08-12 08:41:46 -05:00