Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Clean up dispatch list handling (&flat instead of &list).

  • Loading branch information...
commit 70d91d42857a88db6c007416742641309e44cc4d 1 parent e4e9822
Patrick R. Michaud pmichaud authored

Showing 1 changed file with 3 additions and 4 deletions. Show diff stats Hide diff stats

  1. +3 4 src/glue/dispatch.pir
7 src/glue/dispatch.pir
@@ -48,7 +48,7 @@ dispatcher for each thingy we're dispatching over.
48 48 .local pmc it, results, disp
49 49 disp = find_name dispatcher
50 50 results = new ['ResizablePMCArray']
51   - invocanty = invocanty.'list'()
  51 + invocanty = invocanty.'flat'()
52 52 it = iter invocanty
53 53 it_loop:
54 54 unless it goto it_loop_done
@@ -77,7 +77,7 @@ array of invocants.
77 77
78 78 .local pmc it, results
79 79 results = new ['ResizablePMCArray']
80   - invocanty = invocanty.'list'()
  80 + invocanty = invocanty.'flat'()
81 81 it = iter invocanty
82 82 it_loop:
83 83 unless it goto it_loop_done
@@ -221,8 +221,7 @@ Implements the .* operator. Calls one or more matching methods.
221 221 rethrow exception
222 222 it_loop_end:
223 223
224   - result_list = '&infix:<,>'(result_list :flat)
225   - .tailcall '&list'(result_list)
  224 + .tailcall '&list'(result_list :flat)
226 225 .end
227 226
228 227

0 comments on commit 70d91d4

Please sign in to comment.
Something went wrong with that request. Please try again.