Commit Graph

76 Commits

Author SHA1 Message Date
Stevie Strickland
dde2011ec7 Add ->dm and case->m, which are the implicit method versions of ->d and
case->.

This should be included in the release.

svn: r18579
2010-03-18 21:28:41 +00:00
Matthew Flatt
4673b36dcf adjust inlining heuristics again
svn: r18479
2010-03-06 03:44:07 +00:00
Stevie Strickland
bf60da75e1 Refactor out new has-contract?/value-contract functionality so that it's
the responsibility of the (higher-order) contract to add the contract
(plus possibly more in the future) to the wrapped value.

svn: r18469
2010-03-04 21:10:44 +00:00
Robby Findler
07f280419a added has-contract? and get-contract
svn: r18460
2010-03-04 03:58:33 +00:00
Stevie Strickland
5fe0a790c1 Change how contracts for multiple values are handled to be a little cleaner
syntactically.

svn: r18458
2010-03-04 00:04:07 +00:00
Stevie Strickland
f2788561d3 Add the ability to contract more than one value returned from a with-contract
block in expression position.

svn: r18456
2010-03-03 21:54:18 +00:00
Stevie Strickland
f37f81cdb2 Maintain source locations appropriately.
svn: r18422
2010-03-01 23:47:31 +00:00
Stevie Strickland
54b81b3bdb Fix bug introduced by last commit.
svn: r18385
2010-02-27 18:04:47 +00:00
Stevie Strickland
9f17622e1a Cleanups here, moving some of the other parts to syntax-parse.
svn: r18383
2010-02-27 17:41:43 +00:00
Stevie Strickland
7dacfaea85 Add with-contract for expression positions.
svn: r18372
2010-02-27 01:05:03 +00:00
Stevie Strickland
d820493feb First cut of converting object-contract to share a common base that
object/c will also use.

svn: r18274
2010-02-22 21:55:32 +00:00
Carl Eastlund
1d6111c532 Renamed simple-contract and simple-flat-contract to make-contract and make-flat-contract.
svn: r18259
2010-02-22 02:51:16 +00:00
Robby Findler
7aa6ea4c76 PR 10645
svn: r18193
2010-02-19 19:43:14 +00:00
Stevie Strickland
fa5ed2c160 Fix object-contract's first-order property to do some reasonable first-order
checking, instead of always failing.

svn: r18121
2010-02-17 19:09:49 +00:00
Stevie Strickland
35afebaea3 Change object-contract to use find-method/who (already exported for Typed
Scheme) to look for the appropriate method to wrap, which makes Robby's
object-contracts appropriately translucent during contract wrapping.

svn: r18102
2010-02-16 19:58:07 +00:00
Carl Eastlund
fe40d3e888 Merged changes from trunk.
svn: r18007
2010-02-06 19:23:24 +00:00
Eli Barzilay
c88a5a6856 A bunch of additional typos
svn: r17976
2010-02-05 03:21:52 +00:00
Carl Eastlund
2e64069d14 Re-disabled legacy (contract ...) form.
svn: r17960
2010-02-03 17:08:26 +00:00
Carl Eastlund
1d4cdbeb45 Exports from scheme/contract/private/blame: removed constructor; fixed confusing selector names.
svn: r17909
2010-01-31 03:03:30 +00:00
Carl Eastlund
d5329eb2a6 Make contract form more permissive; import make-blame.
svn: r17908
2010-01-31 01:48:08 +00:00
Carl Eastlund
bf308563d2 Hide make-blame; remove blame-positive and blame-negative; make blame objects transparent (but allow equal?).
svn: r17907
2010-01-31 01:47:48 +00:00
Carl Eastlund
f8df3608d4 Hide "make-blame" from normal export.
svn: r17906
2010-01-31 01:47:07 +00:00
Carl Eastlund
0e697067cb Uniformly "unpack" contract blame party names.
svn: r17904
2010-01-31 00:30:00 +00:00
Carl Eastlund
29b628cb0a Fixed legacy projections to allow 4 or 5 arguments.
svn: r17903
2010-01-31 00:29:37 +00:00
Carl Eastlund
7d577d9d02 Removed an unnecessary require.
svn: r17901
2010-01-30 21:45:52 +00:00
Carl Eastlund
2772ffccba Restored legacy functions for custom contracts.
svn: r17900
2010-01-30 21:14:27 +00:00
Carl Eastlund
7f58c26709 Replaced uses of quote-srcloc with quote-syntax.
svn: r17757
2010-01-19 23:25:07 +00:00
Carl Eastlund
791178a549 Fixed printing of blame error messages to use display and write appropriately.
svn: r17753
2010-01-19 09:28:28 +00:00
Carl Eastlund
51983e3829 Fixed simple-contract stronger check.
svn: r17752
2010-01-19 09:28:08 +00:00
Carl Eastlund
6a0469b680 Fixed detection of printable contracts in dependent struct contracts.
svn: r17751
2010-01-19 09:27:51 +00:00
Carl Eastlund
9506494416 Fixed a shadowed name
svn: r17743
2010-01-19 07:28:06 +00:00
Carl Eastlund
d01e61508f Fixed a blame assignment typo.
svn: r17741
2010-01-19 07:14:00 +00:00
Carl Eastlund
5d7774e7b2 Fixed test for procedure?, which now recognizes flat contracts, and typo for contract-projection.
svn: r17738
2010-01-19 05:59:47 +00:00
Carl Eastlund
4b739b5f62 Removed obsolete build-src-loc-string
svn: r17734
2010-01-19 03:43:00 +00:00
Carl Eastlund
3921e16aa1 Updated lingering use of old src-info format.
svn: r17732
2010-01-19 03:41:30 +00:00
Carl Eastlund
4de3ee3a9e Re-enabled 4-argument contract macro, and added more output to misuse messages.
svn: r17731
2010-01-19 03:41:03 +00:00
Carl Eastlund
2f2068356c Replaced mistaken #f with srcloc.
svn: r17730
2010-01-19 03:39:28 +00:00
Carl Eastlund
9fbf023d90 Took collection path simplification out of this file.
svn: r17729
2010-01-19 03:38:55 +00:00
Carl Eastlund
0edd786361 Removed more occurrences of old source info representation.
svn: r17724
2010-01-18 23:24:34 +00:00
Carl Eastlund
167c9cb1a8 Changed contract source locations to perform module resolution in advance.
svn: r17723
2010-01-18 23:11:12 +00:00
Carl Eastlund
6ac7fe78e6 Ported object contracts to new properties.
svn: r17719
2010-01-18 18:32:26 +00:00
Carl Eastlund
1014dd2da4 Converted provide.ss to use new contract form and deference variable-reference.
svn: r17716
2010-01-18 17:05:06 +00:00
Carl Eastlund
124050d54e Converted current-contract-region to dereference variable-reference.
svn: r17715
2010-01-18 17:04:44 +00:00
Carl Eastlund
b0c93342d9 Fixed type error in source location conversion.
svn: r17714
2010-01-18 17:04:01 +00:00
Carl Eastlund
4d22b7a5f4 Allowed path values in blame s-expressions.
svn: r17708
2010-01-17 18:50:55 +00:00
Carl Eastlund
4e3874a1c5 Moved path pretty-printing into blame module.
svn: r17707
2010-01-17 18:50:40 +00:00
Carl Eastlund
00d79083e3 Slight changes to new contract protocol.
svn: r17705
2010-01-17 18:35:19 +00:00
Carl Eastlund
b24b946155 Added explicit checks for saner contract protocol.
svn: r17704
2010-01-17 18:02:39 +00:00
Carl Eastlund
bb7bd9de51 Typos and type errors in new property stuff.
svn: r17700
2010-01-17 07:23:47 +00:00
Carl Eastlund
e408fd464b Propagated guts exports through scheme/contract/base and scheme/contract.
svn: r17698
2010-01-17 06:18:13 +00:00