Révision | 4dd8cb8cbbfca8d078d9f46d5a24cb7a18aeb1cb (tree) |
---|---|
l'heure | 2024-04-04 23:48:43 |
Auteur | Albert Mietus < albert AT mietus DOT nl > |
Commiter | Albert Mietus < albert AT mietus DOT nl > |
The Sieve:: report has a parameter
@@ -55,11 +55,11 @@ | ||
55 | 55 | |
56 | 56 | SimpleSieve.input(foundPrime) on .newPrime |
57 | 57 | { |
58 | - report() | |
58 | + report(foundPrime) | |
59 | 59 | .found.input(foundPrime); // Forward to “main” |
60 | 60 | } |
61 | 61 | |
62 | - report() // This is a local function -- as it is not connected (to a port) it is “private” | |
62 | + report(int:foundPrime) // This is a local function -- as it is not connected (to a port) it is “private” | |
63 | 63 | { |
64 | 64 | printf("Finder: Found prime (no %s): %8i\n", .count, foundPrime); |
65 | 65 | .count +=1 |