Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-5) was last changed on 08-Aug-2010 11:26 by Carsten Strotmann  

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

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

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
Version Date Modified Size Author Changes ... Change note
5 08-Aug-2010 11:26 9.406 kB Carsten Strotmann to previous
4 08-Aug-2010 11:02 7.089 kB Carsten Strotmann to previous | to last
3 08-Aug-2010 10:46 5.883 kB Carsten Strotmann to previous | to last
2 08-Aug-2010 10:34 2.953 kB Carsten Strotmann to previous | to last
1 08-Aug-2010 10:30 2.667 kB Carsten Strotmann to last
« This page (revision-5) was last changed on 08-Aug-2010 11:26 by Carsten Strotmann