Matthew Flatt
e44c0809e8
rewrite contract error messages for *SL
...
The rewrite involves parsing contract expressions and constructing
replacement prose.
2012-06-05 17:53:27 +08:00
Matthew Flatt
3742a9da8f
adjust font-substitution hack for Mac OS X
2012-06-05 17:53:26 +08:00
Matthew Flatt
42db3a7516
raco setup: print "nothing to do" to stdout instead of sdterr
...
Printing to stderr shows through in various ways, such as
when installing a Planet package (where stdout is redirected
and stderr isn't).
2012-06-05 17:53:26 +08:00
Neil Toronto
18fa552723
Finalized and documented flomap transforms and effects
2012-06-04 15:32:17 -06:00
Sam Tobin-Hochstadt
2b9912ea9f
Repair failing test case (wrong expected value).
2012-06-04 17:02:19 -04:00
Sam Tobin-Hochstadt
42a2ac6026
Document new TR aliased definitions.
2012-06-04 17:02:18 -04:00
Robby Findler
b5258e0e2b
In the multi-file search window, only re-load the file
...
in the bottom window when it really is a different file
(ie, using a same-file predicate that involves opening
the files and comparing the ports)
closes PR 12635 (hopefully -- if not, then we can reopen)
2012-06-03 17:07:12 -05:00
Sam Tobin-Hochstadt
1801efe66a
Whitespace fixes.
2012-06-03 10:50:18 -04:00
Sam Tobin-Hochstadt
cbbd889621
=
can equate values with different types.
...
Closes PR 12804.
2012-06-03 10:50:18 -04:00
Matthew Flatt
cc0b887106
adjust *SL error-message rewriting
2012-06-03 11:09:32 +08:00
Sam Tobin-Hochstadt
8459c22c01
Improve type of identity
.
...
Closes PR 12813.
2012-06-02 18:52:18 -04:00
Sam Tobin-Hochstadt
865a2cdcbd
Support definitions of keyword functions in Typed Racket.
...
Caveats:
- keyword function definitions do not define static
bindings, thus limiting optimization opportunities
- can't use `define:`, `lambda:`, etc with keywords
- error messages sometimes expose the implementation
- the optimizer skips most of the generated code for
keyword functions definitions (user-level code is
optimized)
2012-06-02 18:22:07 -04:00
Jon Rafkind
244f1cccb7
[honu] fix the pattern form and use quote-syntax to prevent syntaxes from being interpolated too early
2012-06-02 15:33:55 -06:00
Jon Rafkind
2b5e5c5b57
[honu] combine string-append and the evaluator
2012-06-02 15:33:54 -06:00
Jon Rafkind
7dde37bee1
[honu] cleanup - move code to submodules
2012-06-02 15:33:54 -06:00
Jon Rafkind
52047a0474
[honu] pass the original name being defined to get the proper lexical context
2012-06-02 15:33:54 -06:00
Jon Rafkind
241f8e67b4
[honu] analyze macro parameters at phase 2. temporarily break patterns
2012-06-02 15:33:54 -06:00
Jon Rafkind
d688621a18
[honu] use sandbox evaluator to test honu code
2012-06-02 15:33:54 -06:00
Matthew Flatt
c5f821b641
clarifications and additions to style guide
2012-06-03 04:50:06 +08:00
Matthew Flatt
900b66332c
adjust `racket/generic' documentation style
2012-06-03 04:50:06 +08:00
Robby Findler
232188e736
adjust the check for multiple-file debugging so that it happens
...
earlier and thus actually catches multiple files.
Also, Rackety and change a let/cc into a let/ec.
2012-06-02 13:44:27 -05:00
Robby Findler
752f240c6a
Revert "Test results from DrDr"
...
This reverts commit fc8cb6e37d
.
Jay changed the set of installed font packages on DrDr to match the
ones on my linux VM which brought the test results back in sync again,
so we don't need these revised bitmaps anymore.
Thanks, Jay!
2012-06-02 10:12:11 -05:00
Robby Findler
058504afbd
adjust datalog so that syntax objects are not used as source location
...
information representation.
This should make datalog work better with compiled files and it
should also avoid an O(n^2) problem in the way it expands
2012-06-02 08:04:45 -05:00
Matthew Flatt
85a2267e6c
ffi/unsafe: new error message convention at primitives
...
Also, fix FFI procedures to preserve names: change `ptr-ref' with
`_fpointer' on an `ffi-obj' value to return the `ffi-obj'
value, so that the name in the `ffi-obj' value can be used
by `_cprocedure'.
Closes PR 12645
2012-06-01 19:03:43 -07:00
Sam Tobin-Hochstadt
c8380b94e5
Remove testing code, and failed experiment.
2012-06-01 20:08:37 -04:00
Jay McCarthy
3348ea1ae2
Fixing racklog tests broken by bf95ee105
2012-06-01 17:33:13 -06:00
Jay McCarthy
7d506713dd
Fixing datalog tests broken by bf95ee105
2012-06-01 17:33:13 -06:00
Jay McCarthy
fc8cb6e37d
Test results from DrDr
2012-06-01 17:33:13 -06:00
Sam Tobin-Hochstadt
a377c42357
Use the new syntax properties for checking keyword functions.
...
Previously, some hacks were used to obtain the internal
identifiers that implemented keyword functions directly, and
give them types at startup. Now, the primary "function"
(eg, `sort`) is given a type, and when used, the residual
syntax properties are used to find `sort` from the real
functions, and then the type of the real function is computed
from the type of `sort`.
Some creativity was required in the types of functions which
take optional arguments that when present, alter the return type,
such as `regexp-match*` and `file->list`.
2012-06-01 18:37:02 -04:00
Sam Tobin-Hochstadt
725854f66c
Flag booleans *follow* the arguments for optional keywords.
2012-06-01 14:50:39 -04:00
Eric Dobson
262ecc3da9
Redefine Boolean as (U #t #f).
...
Closes PR 12815.
2012-06-01 10:26:10 -04:00
Robby Findler
64e4a43c9c
fix easter egg test suite for the new error messages
2012-06-01 07:16:14 -05:00
Robby Findler
bf95ee1052
Adjust datalog to cooperate with check syntax a little bit more.
...
Specifically:
- make predicate symbols and variables be original (and,
in the former case, have srclocs)
- remove the originality in the quoted syntax constants
that the expansion introduces
I think there is probably something better that should be done
with those introduced syntax constants, possibly relacing
them with #f, or possibly replacing them with source location
lists, but I'm not sure how they are used, so I've just left
them in there.
(Also, very minor Rackety in check syntax)
2012-06-01 04:55:04 -05:00
Robby Findler
7118547c58
adjusted the module-language, pretty-big and r5rs parts of
...
the drracket language test for the new error messages
2012-06-01 02:36:54 -05:00
Robby Findler
d17f93db30
add PLTJUSTSAVEFAILURES support; makes it easier to build a good
...
set of bitmaps on others' machines (no clicking required)
2012-05-31 23:27:02 -05:00
Eric Dobson
c2d9f7ed9a
Attach struct info to constructor for polymorphic TR structs.
...
Closes PR 12806
2012-05-31 13:09:26 -04:00
Robby Findler
b7b566aefc
adjust redex error message tests to match singular/plural fixes in
...
the error raising code, except in one place where I think the
error raising code was correct to have the plural form, so I changed
it back instead of changing the Redex test suite to match
2012-05-31 10:56:14 -05:00
Robby Findler
f721c0427d
adjust the timeouts to two drracket tests and add a little syncronization help in a third
2012-05-31 10:56:13 -05:00
Matthew Flatt
f10a258dcb
ffi/unsafe: fix arithmetic overflow and representation
...
Thanks to Tobias Hammer for the report and initial repairs.
2012-05-31 09:21:25 -06:00
Matthew Flatt
a7206b1a9f
further correction to tests/gracket/blits prop
...
The test isn't automatic, so don't run it in DrDr.
2012-05-31 09:21:24 -06:00
Eric Dobson
735b84b083
Add support for multiple provides of the same identifier in TR.
...
Closes PR 12807.
2012-05-31 10:02:03 -04:00
Matthew Flatt
16f0b0c3f0
racket/gui: fix canvas%' implementation
on-paint'
...
Broken in the conversion from `class100'.
2012-05-31 05:56:35 -06:00
Robby Findler
77811e0e95
Adjust how the drracket repl iterates over expressions to make it more
...
like textual-read-eval-print-loop
There is still a difference, however, because drracket's REPL has a
notion of multiple expressions that are submitted simultaneously that
textual-read-eval-print-loop doesn't. For example, if you type this at
the prompt:
(car) (+ 1 2)
then textual-read-eval-print-loop will print out the error and then 3,
but drracket will print only the error (ditto if (car) were replaced
by a continuation abort).
This difference is, IMO, a good thing, since it lets you use a single
interaction to do multiple things, but stops as soon as there is an
error. (It is also how drracket has behaved for a long time.)
closes PR 12790
2012-05-30 22:31:55 -05:00
Robby Findler
daa048719a
fixed a bug in the ordering of how printing parameters are set up
...
There was an exception raised and then handled internally when the
slideshow/pict-convert library was loaded; DrRacket loaded this
library during the dynamic-extent of a handler it installed into
the global-port-print-handler, which causes a (non-tail) infinite
loop.
2012-05-30 22:31:55 -05:00
Robby Findler
37ebbfa635
adjust global-port-print-handler's documented contract to match
...
what it does (and what the text says)
2012-05-30 22:31:55 -05:00
Robby Findler
efd6772e9a
adjust repl-test and the module language test for the new error message format
2012-05-30 22:31:54 -05:00
Neil Toronto
331b3b8351
Fixed some transforms, stubbed out docs and examples for the same
2012-05-30 17:31:57 -06:00
Matthew Flatt
e8645598d7
futures: fix bug related to tail calls
2012-05-30 16:20:36 -06:00
Neil Toronto
91579f2a6e
Now make-flomap* and effects functions accept (U (Vectorof Real) FlVector) for color instead of just FlVector
...
New vector-of-component functions: unsafe-flomap-ref*, flomap-ref*, flomap-bilinear-ref*, build-flomap*, inline-build-flomap*;
REPL interaction with -ref* is a bit weird - still need to make flvectors print nicely
Bilinear ref and scaling fix on top and left borders (bad/missing special cases);
Clarified flomap-bilinear-ref docs on extent of interpolated nonzero rectangle
Various doc fixes
2012-05-30 15:05:00 -06:00
Vincent St-Amour
4ad700021b
Improve some Performance Report messages.
2012-05-30 16:25:33 -04:00
Vincent St-Amour
84c6fe1522
Don't index some subsubsections of the text editor docs.
...
Closes PR 12801.
2012-05-30 16:25:33 -04:00
Neil Toronto
c05c45e0e9
Fixed whirl morph test
2012-05-29 18:08:48 -06:00
Neil Toronto
c7bea1dfcd
images/flomap: public interface to floating-point bitmaps used by ray tracer
2012-05-29 17:51:19 -06:00
Justin Slepak
2f23f1b6b3
Allow vector-append to take zero arguments
...
Makes vector-append behave more like append, sequence-append, etc.
2012-05-29 16:56:38 -04:00
Matthew Flatt
74844152bc
fix load handlers to match docs on parameters
...
Problems exposed by setting `read-accept-lang' to #f.
2012-05-29 13:57:32 -06:00
Matthew Flatt
a95739821b
fix props for one test
2012-05-29 13:57:32 -06:00
Matthew Flatt
e9070f89c7
terminology correction
2012-05-29 13:57:32 -06:00
Jay McCarthy
50ca12201d
Fixing 482214e
2012-05-29 13:39:37 -06:00
Jay McCarthy
4f8e1df169
Fixing error introduced by 9e7548de
2012-05-29 13:39:37 -06:00
Jay McCarthy
38ae869d66
Fixing error introduced by 9e7548de
2012-05-29 13:39:37 -06:00
Jay McCarthy
4d829b8322
Fixes PR12799, but it would be cool to support syntax/parse directly
2012-05-29 13:39:37 -06:00
Matthew Flatt
248301c9ed
disable nested `#lang'
...
A `syntax/module-reader' reader disables `#lang' when looping to
read a module body. The HtDP languages require a little additional
treatment.
2012-05-29 11:01:52 -06:00
Matthew Flatt
def4da4f9a
doc fix
...
Closes PR 12796
2012-05-29 11:01:52 -06:00
Matthew Flatt
26269c329e
racket/base: add some missing predicates
...
The new predicates are `progress-evt?' `thread-cell-values?',
`prefab-key?', `semaphore-peek-evt?', and `channel-put-evt?'.
These were used internally, and now they appear in contract
error messages.
2012-05-29 11:01:52 -06:00
Matthew Flatt
b098ca7aa6
slideshow: run a slideshow' or
main' submodule, if any
...
A common Slideshow pattern is to put a subset of slides in its
own module with a `run-slides' function, and then you'd
(un)comment a `(run-slides)' call at the end of the module to
work on the subset by itself. Now, you can write
`(module+ main (run-slides))' atthe end of the module and not
have to comment it out. Adding `main' support to the `slideshow'
executable makes it more consistent with using `racket' directly.
Checking first for a `slideshow' submodule makes it possible
for `slideshow' and `racket' to do different things, in case
that's useful.
2012-05-29 11:00:43 -06:00
Matthew Flatt
0c303ca9cd
racket/cmdline add `#:ps' clause
2012-05-29 11:00:43 -06:00
Matthias Felleisen
f1c1376d87
added 'range' to *sl per jpr's request and #lang-ified a couple of files
2012-05-29 12:00:27 -04:00
Matthew Flatt
2fcb635790
raco exe: checks on source and destination paths
...
Disallow creating a launcher whose source is the launcher itself,
for example.
2012-05-28 20:30:58 -06:00
Matthew Flatt
6fded4bac1
syntax/free-vars: fix quadratic behavior
...
(Forgot to fix the "FIXME" before committing last time.)
2012-05-28 20:22:31 -06:00
Matthew Flatt
ee93e35260
syntax/free-vars: deterministic result order
...
Closes PR 12798
2012-05-28 20:15:43 -06:00
Jay McCarthy
211e869fe1
Supporting methods in web-server/dispatch
2012-05-28 14:13:19 -06:00
Jay McCarthy
8b035f3c73
Fixing PR12779
2012-05-28 11:52:56 -06:00
Jay McCarthy
391754a337
Fixing commit message display re newlines re Robby
2012-05-28 11:52:56 -06:00
Jay McCarthy
c75360957c
Attempt to clarify docs for PR12793
2012-05-28 11:52:56 -06:00
Robby Findler
e08c1f3ad1
adjust and add "docs" to img-eval.rkt for Matthias's consumption
2012-05-28 10:58:40 -05:00
Matthew Flatt
99635ab091
change `impersonate-struct' to require evidence that a field is mutable
...
When supplying an accessor to redirect, either the corresponding field
must be accessible through the current inspector, or a mutator for
the same field must be redirected, too.
Stevie realized that we need this constraint; otherwise, impersonators
can implement mutator-like behavior even when the mutator is otherwise
secret.
2012-05-27 15:37:45 -06:00
Matthew Flatt
73ce5a4767
racket/serialize: fix for submodules
...
Closes PR 12795
2012-05-27 14:39:51 -06:00
Matthew Flatt
a137459b65
more error-message conversions and repairs
2012-05-27 11:29:21 -06:00
Matthew Flatt
6eeb8fccbd
more error-message conversion
2012-05-27 09:03:19 -06:00
Matthew Flatt
00ef7da640
racket/draw: background and text colors in `record-dc%'
...
Also, improve docs to clarify how the recorded settings interact with
the target DC's settings.
2012-05-27 06:38:30 -06:00
Matthew Flatt
8ab87a9fcc
racket/class: new error message convention
2012-05-26 21:08:21 -06:00
Robby Findler
0456d5e4e5
exploit record-dc% to keep picts from drawing outside
...
of their bounding boxes
2012-05-26 21:39:11 -05:00
Matthew Flatt
a55a20f9d9
sgl/gl: NURBS additions
...
From Antonio Menezes Leitao based on Ben Goetter's implementation
2012-05-26 19:55:21 -06:00
Matthew Flatt
58db5f8b46
racket/gui: implement set-clipboard-bitmap' in
clipboard<%>'
...
Closes PR 12689
Cocoa implementation provided by Jens Axel Søgaard
2012-05-26 19:42:48 -06:00
Asumu Takikawa
8a52613463
racket/gui: remove empty modules
2012-05-26 16:45:00 -04:00
Asumu Takikawa
a38e6a19ab
racket/gui: fix a mzscheme->racket/base issue
2012-05-26 16:23:30 -04:00
Asumu Takikawa
81d13ee7ed
racket/generic: doc improvements
2012-05-26 13:53:43 -04:00
Asumu Takikawa
05394aff7e
Remove mred/private/kw.rkt
...
This handled init argument inheritance for class100, but
all uses of it have now been removed.
2012-05-26 11:12:56 -04:00
Asumu Takikawa
cfe1711494
Convert all uses of mzlib/class100 to racket/class
2012-05-26 11:12:55 -04:00
Asumu Takikawa
6341fe7e01
Remove gracket test that does not run.
...
The file is written in mzscheme or pre-mzscheme and
tries to load files that no longer exist.
2012-05-26 11:12:55 -04:00
Vincent St-Amour
3062efe47f
Reduce random testing attemps to avoid DrDr timeouts.
2012-05-26 11:06:29 -04:00
Matthew Flatt
b5ab6cec7e
fix misc tests for error-message change
2012-05-26 08:18:19 -06:00
Matthew Flatt
413c940fe6
update HtDP *SL tests for revised error-message convention
...
This change does not yet update the *SL error-message rewriter
to recognize the new error-message formats; the tests do not
currently use the rewriter. A next step is to decide on the
rewritings, implement them, change the test suite to use the
rewriter, and test the rewritings.
2012-05-26 08:05:12 -06:00
Matthew Flatt
5b80fd37c7
racket/gui win32: fix screen info to not assume main is first
...
Thanks to Kieron Hardy for tracking down the problem.
2012-05-26 07:38:24 -06:00
Matthew Flatt
09cb2a348f
ffi/com: add 'variant type description
...
Used to prevent extra array dimensions and instead construct nested
arrays.
2012-05-26 06:38:02 -06:00
Matthew Flatt
b7a8c0185b
correct a `raise-argument-error' conversion mistake
2012-05-25 18:37:29 -06:00
Matthew Flatt
f00c1150fe
adjust `raco setup' replay of exception messages to handle multiple lines
2012-05-25 18:37:29 -06:00
Matthew Flatt
d6774d5d54
racket/sandbox: add sandbox-propagate-exceptions
2012-05-25 18:37:29 -06:00
Vincent St-Amour
263016f6f3
Fix types in the images collection to work with TR's handling of NaN.
2012-05-25 17:15:22 -04:00
Vincent St-Amour
142158c0cb
Add random testing script for float types.
2012-05-25 17:15:22 -04:00
Vincent St-Amour
186b463217
Fix NaN and inf handling in flonum specific op types.
2012-05-25 17:15:22 -04:00
Vincent St-Amour
ebcc6d211a
Fix handling of NaN and infinities.
...
Most of these were found through random testing.
2012-05-25 17:15:22 -04:00
Vincent St-Amour
b6a7a0c505
Add reminder that unsafe-flexpt is currently the same as flexpt.
2012-05-25 17:15:22 -04:00
Matthew Flatt
9e7548de61
new error message convention
...
Add `raise-argument-error', `raise-result-error', `raise-arguments-error',
and `raise-range-error'.
The old convention was designed for reporting on a single (sometimes very
long line). The new convention is
<name>: <short message>
<field>: <detail>
...
If <detail> is long or itself spans multiple lines, then it may
also use the form
<field>:
<detail>
where each line of <detail> is indented by 3 spaces.
Backtrace information is shown as a multi-line "context" field.
2012-05-25 15:08:05 -06:00
Matthew Flatt
9b7ef7bf69
scribble/eval: fix error line wrapping
...
The `wrap-line' function from `scribble/text/wrap' wants a
string that's a single line, so break the initial string
based on explicit lines, first.
2012-05-25 12:47:39 -06:00
Matthew Flatt
e334632ffc
slideshow/pict: fix clipping problem with `standard-fish'
2012-05-25 12:47:39 -06:00
Robby Findler
7156b0391b
fix the contract context messages for the case of ->*'s #:rest arguments
2012-05-25 09:14:09 -05:00
Neil Toronto
eeb3da0c23
Changed macros into functions + begin-encourage-inline; drops a few seconds from `images' compile, no measured performance penalty
2012-05-25 14:16:19 +09:00
Neil Toronto
50ad8dac1f
When plot-new-window?' is #t,
plot' and `plot3d' now create a frame in a new eventspace. This allows plot frames to be displayed programmatically. (Without this change, the frames are unresponsive until the REPL regains control.)
2012-05-25 13:11:46 +09:00
Neil Toronto
ee95182386
Made (require plot) more obvious in the plot introduction (suggested by Jens Axel Søgaard)
...
Mentioned (plot-new-window? #t) early in the introduction
Increased drdr:timeout for plot.scrbl
2012-05-25 11:33:50 +09:00
Neil Toronto
365ee2c70d
1d, 2d and 3d function renderers no longer sample outside the function's bounds
...
This makes it more efficient to plot piecewise functions by drawing each piece with one renderer, and possible to plot functions with discontinuities by using a renderer to draw each continuous piece.
2012-05-25 10:40:05 +09:00
Vincent St-Amour
cee88f05dd
Docs for gen:custom-write.
2012-05-24 16:51:14 -04:00
Vincent St-Amour
13b82e9a59
Reorder docs.
2012-05-24 16:51:14 -04:00
Asumu Takikawa
a22633e348
Rename generics => generic.
2012-05-24 16:51:14 -04:00
Vincent St-Amour
11dc825126
Forge gen:equal+hash and gen:custom-write to provide them from racket/base.
2012-05-24 16:51:13 -04:00
Vincent St-Amour
c21813cebf
Add gen:custom-write.
...
No docs yet.
2012-05-24 16:51:13 -04:00
Vincent St-Amour
3210cd1d12
Remove vestigial set of parens and fix docs for new syntax.
2012-05-24 16:51:12 -04:00
Vincent St-Amour
94bd484a66
Resolve collision between class generics and struct generics.
2012-05-24 16:51:12 -04:00
Vincent St-Amour
02055aa1b3
Add remark about auxiliary definitions in method blocks.
2012-05-24 16:51:12 -04:00
Vincent St-Amour
dd05d6e6bc
Make original generics tests quiet.
2012-05-24 16:51:11 -04:00
Vincent St-Amour
f42ae56893
Trailing whitespace.
2012-05-24 16:51:11 -04:00
Vincent St-Amour
390cd02b52
Have a generic interface for equal+hash.
...
Currently provided by racket/struct, for lack of a better place.
2012-05-24 16:51:11 -04:00
Vincent St-Amour
cc7ae795ea
Remove the coercion function code.
...
Didn't turn out to be useful.
2012-05-24 16:51:10 -04:00
Asumu Takikawa
44783b9f8e
Add tests from unstable/generics.
2012-05-24 16:51:10 -04:00
Asumu Takikawa
8ac82eaf58
Use simplified interface for define-generics
...
Also removed `generics`
2012-05-24 16:51:09 -04:00
Vincent St-Amour
f11861f60a
Have method definitions be its own keyword in the struct form.
...
Struct properties are hidden from users.
2012-05-24 16:51:08 -04:00
Vincent St-Amour
3bfaa2b00b
New naming convention for generics names.
2012-05-24 16:51:07 -04:00
Asumu Takikawa
f866e34b26
Expand documentation on sequence/stream extension
2012-05-24 16:51:06 -04:00
Vincent St-Amour
08cd358300
Add iterators as tests for generics.
...
Equivalent to streams, so not useful to provide.
2012-05-24 16:50:46 -04:00
Asumu Takikawa
ec2563fdd3
Add comment about coerce-method-table
2012-05-24 16:50:45 -04:00
Vincent St-Amour
1a42772c02
props
2012-05-24 16:50:45 -04:00
Asumu Takikawa
3a93df5566
Use racket/generics for extensions to racket/stream
2012-05-24 16:50:44 -04:00
Vincent St-Amour
0b0473d228
Allow generics to be attached to existing struct properties.
2012-05-24 16:50:44 -04:00
Vincent St-Amour
991cb5f371
Hide #:coerce-method-table from the public generics API.
2012-05-24 16:50:43 -04:00
Vincent St-Amour
8997379f35
Split interface and implementation of the generics library.
2012-05-24 16:50:43 -04:00
Vincent St-Amour
d5de436b9c
Add a pointer to generics in the struct property docs.
2012-05-24 16:50:42 -04:00
Vincent St-Amour
448ad27a37
Move generics to racket/generics.
...
After discussion with Eli.
2012-05-24 16:50:42 -04:00
Vincent St-Amour
1180a95c60
props
2012-05-24 16:31:32 -04:00
Vincent St-Amour
e7e66ce41c
Implement coercion for method tables.
...
For backwards compatiblity, method tables can be generated from old APIs.
2012-05-24 16:31:32 -04:00
Vincent St-Amour
a68242e4eb
Implement ordered dicts in terms of generics.
2012-05-24 16:31:32 -04:00
Vincent St-Amour
17bb9073b9
Document new dict extensibility API.
2012-05-24 16:31:32 -04:00
Vincent St-Amour
ff416ca2ac
Remove dead code in racket/private/dict.
2012-05-24 16:31:32 -04:00
Vincent St-Amour
1ec2bc0ea4
Add tests for generics.
2012-05-24 16:31:31 -04:00
Vincent St-Amour
c29a65485e
Update generic docs to explain the optional defined-table argument.
2012-05-24 16:31:31 -04:00
Vincent St-Amour
36980c262f
unstable/generics: define-methods' ->
methods'
...
`define-methods' is a bad name for an expression form.
2012-05-24 16:31:31 -04:00
Asumu Takikawa
e4a3001af6
Reimplement racket/dict using generics.
2012-05-24 16:31:31 -04:00
Asumu Takikawa
e3b7640528
Let provider of generics check if a method exists
...
This change adds an additional argument to define-generics
that binds a procedure to check if a given method is defined
for an instance of the generic.
2012-05-24 16:25:09 -04:00
Asumu Takikawa
518bf0fd30
Move unstable/generics to generics.
2012-05-24 16:25:09 -04:00
Eli Barzilay
a3ad719b52
Leftover file that wasn't added with the `tests/profile' refactoring.
2012-05-24 11:53:03 -04:00
Eli Barzilay
8fc49d41cf
Improved bash completion script.
...
Warning: I tried a bunch of things and it looks like it works, but I'm
not using bash regularly so there might be some problems in this.
Committing by request of the bashers.
It would still need some work to make it work as (I think) was intended.
For example _find_exe() should be used to find the current executable
when completing, but it's used at the toplevel.
2012-05-24 11:48:35 -04:00