Stevie Strickland
0d1b217bce
Add docs for version of define/contract that is in mzlib/contract.
...
svn: r11719
2008-09-13 04:45:44 +00:00
Stevie Strickland
03347cc390
Probably a better way to do this, but now the list is of odd length
...
and I can't just remove define/contract (which is no longer a binding
from scheme/contract) straightforwardly.
svn: r11718
2008-09-13 04:37:51 +00:00
Stevie Strickland
1d9721a406
Oh, yeah, I'm digging me that merge tracking. Trunkward, ho!
...
svn: r11717
2008-09-13 03:20:43 +00:00
Stevie Strickland
0870c7ae1d
Actually, move the old-style define/contract to its own file in mzlib,
...
and change around mzlib/contract.ss appropriately.
svn: r11715
2008-09-13 02:51:09 +00:00
Stevie Strickland
16bce22386
Slight change just because we're now printing what kind of thing triggered
...
the broken contract.
svn: r11714
2008-09-13 02:11:05 +00:00
Stevie Strickland
14ef34e8e3
Revert this all the way back to where it was, I'll fix it up in a sec.
...
svn: r11713
2008-09-13 02:03:34 +00:00
Stevie Strickland
2017df4435
Add in with-contract and define/contract tests here.
...
svn: r11712
2008-09-13 02:01:57 +00:00
Stevie Strickland
ed067cb351
Be specific in what we're iterating over.
...
svn: r11711
2008-09-13 01:37:43 +00:00
Eli Barzilay
42e33b7d94
minor tweaks
...
svn: r11710
2008-09-13 00:51:21 +00:00
Stevie Strickland
c484131597
Okay, here's the old stuff put back, will fix up the unit tests when I get
...
home.
svn: r11709
2008-09-12 23:51:51 +00:00
Stevie Strickland
32f0b99f12
Couple more tests. Also, change things to mzscheme/mzlib. I really should
...
go put the old version of define/contract in mzlib/contract.ss, have it
not import with-contract or the new define/contract, and fix the unit tests
appropriately.
svn: r11708
2008-09-12 23:39:19 +00:00
Stevie Strickland
41ee6c8ac7
Hello, McFly, hello?!
...
I can't believe there wasn't already a test in there that checked this kind
of thing. Wait, of course there couldn't have been, because it was specific
to define/contract and with-contract, and _I'm_ writing those tests. Ah,
well, fixed! :p
svn: r11707
2008-09-12 23:25:58 +00:00
Stevie Strickland
a343268083
Just to make sure the srcloc info is correct.
...
svn: r11706
2008-09-12 22:59:51 +00:00
Matthew Flatt
72055191b4
add printable<%>
...
svn: r11705
2008-09-12 22:50:09 +00:00
Stevie Strickland
f7cd4784de
Need the #:exists keyword here.
...
svn: r11704
2008-09-12 22:43:58 +00:00
Robby Findler
3c2cb93f74
adjusted colors, hopefully better for colorblind people
...
svn: r11703
2008-09-12 22:31:57 +00:00
Stevie Strickland
7b4cf086e9
trunk merge, oh boy
...
svn: r11702
2008-09-12 22:30:47 +00:00
Stevie Strickland
2e22b77278
Add which argument or result caused the contract error for -> contracts
...
(i.e. also ->*, but not ->d or case->).
svn: r11701
2008-09-12 21:45:13 +00:00
Stevie Strickland
e83a72d6ae
* Fix converting modules whose source is (list 'quote 'name) to "module 'name"
...
in contract messages
* Differentiate between define/contract functions and normal definitions
* Fix up contract tests
svn: r11700
2008-09-12 20:46:41 +00:00
Stevie Strickland
068bbd7600
Fix typo.
...
svn: r11699
2008-09-12 19:40:58 +00:00
Stevie Strickland
af5628bb5a
Fix up syntax here.
...
svn: r11698
2008-09-12 19:32:39 +00:00
Stevie Strickland
4e8064e8a5
Change it so that it uses strings instead of symbols here.
...
svn: r11697
2008-09-12 19:01:13 +00:00
Stevie Strickland
19cfe4e49e
I hate this kind of error checking.
...
svn: r11696
2008-09-12 18:55:11 +00:00
Stevie Strickland
019c2c8c34
Handle strings as blame, now add a description of the type of contract
...
boundary that triggered the contract error.
svn: r11695
2008-09-12 18:49:08 +00:00
John Clements
5895f67bfe
fixed stepper tests
...
svn: r11694
2008-09-12 18:19:33 +00:00
Stevie Strickland
b309ced851
Appropriately check the context.
...
svn: r11693
2008-09-12 18:17:40 +00:00
Stevie Strickland
3b44bca1d5
Remove the introducer, which isn't being used anyway.
...
svn: r11692
2008-09-12 18:13:20 +00:00
Stevie Strickland
a4c6d310df
trunk merge
...
svn: r11691
2008-09-12 17:11:39 +00:00
Stevie Strickland
ac576f5085
There's nothing quasi about the body, so just go with regular syntax
...
(and change the quote-syntax uses to just #')
svn: r11690
2008-09-12 17:09:42 +00:00
Stevie Strickland
e53d5c43ff
Just indention.
...
svn: r11689
2008-09-12 16:59:00 +00:00
Stevie Strickland
ea206c7b3d
Go back to the old style.
...
svn: r11688
2008-09-12 16:48:33 +00:00
Stevie Strickland
e2c770ab45
So we _can_ do this, but since provides/requires are between modules, and
...
thus it's the enclosing module that made the contract here, we should
blame it for the misuse, not the contract boundary in which the call was
made (though further thought should be put towards this).
svn: r11687
2008-09-12 16:39:11 +00:00
Stevie Strickland
eb919c78d1
Doc fixes.
...
svn: r11686
2008-09-12 16:26:09 +00:00
Stevie Strickland
f191636cc7
Use the same info here as the provide/contract -contract uses do.
...
svn: r11685
2008-09-12 16:20:38 +00:00
Eli Barzilay
5541890dd5
yet more v4-isms
...
svn: r11684
2008-09-12 15:41:34 +00:00
Eli Barzilay
0c0630d50d
more v4-isms
...
svn: r11683
2008-09-12 15:30:38 +00:00
Eli Barzilay
78632e178d
svn: r11682
2008-09-12 15:23:05 +00:00
Stevie Strickland
c32c61ab74
Initial work on documenting the new form and changing the documentation
...
for define/contract appropriately.
svn: r11681
2008-09-12 15:20:02 +00:00
Stevie Strickland
a44810f4f5
More error checking, shouldn't have allowed (define/contract x number? 1 2),
...
for example.
svn: r11680
2008-09-12 15:19:29 +00:00
Eli Barzilay
5675f4574c
more v4-updates
...
svn: r11679
2008-09-12 15:18:00 +00:00
Eli Barzilay
41a4f4b2ae
macro -> function
...
svn: r11678
2008-09-12 15:03:54 +00:00
Eli Barzilay
854d52d987
mzlib/* -> scheme/*, for-each -> for
...
svn: r11677
2008-09-12 14:56:10 +00:00
Stevie Strickland
33d3cb7cd0
Have provide/contract-transformers appropriately check to see whether we
...
are within a with-contract scope. Not quite sure if this code is 100%
correct (in terms of being written apprropiately), but it does the job for now.
svn: r11676
2008-09-12 14:51:26 +00:00
Eli Barzilay
4f1b829413
switch to #lang, reindent, minor fix (when -> if), merge stuff with csu660 version
...
svn: r11675
2008-09-12 14:49:22 +00:00
Eli Barzilay
ef92bf90f4
svn: r11674
2008-09-12 13:23:52 +00:00
Eli Barzilay
a3930ea088
improved reader documentation
...
svn: r11673
2008-09-12 13:22:31 +00:00
Eli Barzilay
c7dc9e73f3
Welcome to a new PLT day.
...
svn: r11672
2008-09-12 07:50:12 +00:00
Stevie Strickland
fa92cb2677
trunk merge
...
svn: r11671
2008-09-12 04:24:30 +00:00
Stevie Strickland
d03ce01a5a
Fix numbering, add back a test similar to the infinite loop case that
...
was here before to illustrate how define/contract now correctly does
not contract internal references.
svn: r11670
2008-09-12 03:49:20 +00:00
Stevie Strickland
65e13861bb
Accidentally committed this in r11663.
...
svn: r11669
2008-09-12 03:42:36 +00:00