Skip to content

Commit c917717

Browse files
committed
classes and interfaces with methods
1 parent c91c953 commit c917717

File tree

115 files changed

+9514
-601
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+9514
-601
lines changed

demo.rhm

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -365,15 +365,15 @@ import:
365365
racket/base open:
366366
only: atan
367367

368-
annotation.macro 'AlsoPosn': values('Posn', '')
368+
annot.macro 'AlsoPosn': values('Posn', '')
369369
Posn(1, 2) :: AlsoPosn // prints Posn(1, 2)
370370

371371
bind.macro 'AlsoPosn ($x, $y) $tail ...':
372372
values('Posn($x, $y)', '$tail ...')
373373

374-
annotation.macro 'Vector':
375-
values(annotation_meta.pack_predicate('fun (x): x is_a Posn',
376-
'(($(statinfo_meta.dot_provider_key), vector_dot_provider))'),
374+
annot.macro 'Vector':
375+
values(annot_meta.pack_predicate('fun (x): x is_a Posn',
376+
'(($(statinfo_meta.dot_provider_key), vector_dot_provider))'),
377377
'')
378378

379379

@@ -572,7 +572,7 @@ get_pts_x([Posn(1, 2)])
572572
fun nested_pt_x(pt :: matching(Posn(Posn(_, _), _))):
573573
pt.x.x
574574

575-
annotation.macro 'ListOf ($contract ...) $tail ...':
575+
annot.macro 'ListOf ($contract ...) $tail ...':
576576
values('matching([_ :: ($contract ...), $('...')])',
577577
'$tail ...')
578578

@@ -640,9 +640,9 @@ dot.macro 'myint_dot_provider $left $dot $right':
640640
| 'is_zero': '$left .= 0'
641641
| 'add': 'fun (v -: MyInt) -: MyInt: $left + v'
642642

643-
annotation.macro 'MyInt':
644-
values(annotation_meta.pack_predicate('fun (x): x is_a Integer',
645-
'(($(statinfo_meta.dot_provider_key), myint_dot_provider))'),
643+
annot.macro 'MyInt':
644+
values(annot_meta.pack_predicate('fun (x): x is_a Integer',
645+
'(($(statinfo_meta.dot_provider_key), myint_dot_provider))'),
646646
'')
647647

648648
val (one -: MyInt): 1

0 commit comments

Comments
 (0)