This page (revision-5) was last changed on 03-Feb-2023 15:21 by Carsten Strotmann 

This page was created on 08-Aug-2010 08:30 by Carsten Strotmann

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
5 03-Feb-2023 15:21 9 KB Carsten Strotmann to previous
4 08-Aug-2010 09:02 6 KB Carsten Strotmann to previous | to last
3 08-Aug-2010 08:46 5 KB Carsten Strotmann to previous | to last
2 08-Aug-2010 08:34 2 KB Carsten Strotmann to previous | to last
1 08-Aug-2010 08:30 2 KB Carsten Strotmann to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 45 changed 2 lines
Most people will agree that Figure One-a would be better written as in Figure Two-a A n even better way is found in some dialects of C, illustrated by Figure Tivo-b. In this extension, following syntax from Pascal, values separated by "," indicate a set of v alues, and values separated by " . . " indicate a range.
Some Forth proposals have one def­ inition for individual values and anoth­ er definition for a range of values. There would have to be another defini­ tion for a set of values. No earlie
Most people will agree that Figure 1a would be better written as in Figure 2a. An even better way is found in some dialects of C, illustrated by Figure 2a. In this extension, following syntax from Pascal, values separated by "," indicate a set of values, and values separated by ".." indicate a range.
Figure 2a
{{{
craps (n)
int (n);
{
switch(n) {
case 7: printf("You win"); break;
case 11: printf("You win"); break;
case 2: printf("You lose"); break;
case 3: printf("You lose"); break;
case 12: printf("You lose"); break;
default: printf("%d is your point",n);
}
}
}}}
Some Forth proposals have one definition for individual values and another definition for a range of values. There would have to be another definition for a set of values. No earlier