reconsidered 0.9 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/README.rdoc +13 -8
- data/README.txt +13 -8
- data/lib/reconsidered.rb +1 -1
- metadata +3 -18
data/History.txt
CHANGED
data/README.rdoc
CHANGED
@@ -9,9 +9,14 @@ License:: 2-clause BSD-Style (see LICENSE.txt)
|
|
9
9
|
== DESCRIPTION:
|
10
10
|
|
11
11
|
Reconsidered adds a vital and sorely missed language feature to Ruby: the
|
12
|
-
well known and widely loved GO TO operation
|
13
|
-
|
14
|
-
|
12
|
+
well known and widely loved GO TO operation.
|
13
|
+
|
14
|
+
== OVERVIEW:
|
15
|
+
|
16
|
+
As discussed in Donald Knuth's seminal paper {<em>Structured Programming
|
17
|
+
with <tt>go to</tt> Statements</em>} (see REFERENCES, below), GOTO can be an
|
18
|
+
important part of your structured programming toolkit -- but it has not been
|
19
|
+
available in Ruby until now.
|
15
20
|
|
16
21
|
However, this implementation is itself severely limited -- it only allows
|
17
22
|
execution to jump to a point in the program which has already been passed
|
@@ -70,12 +75,12 @@ statement which has already been executed, unlike the GOTO statement in,
|
|
70
75
|
e.g. C, which can be used to jump forward (but only within a given
|
71
76
|
function):
|
72
77
|
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
78
|
+
if (num == guess)
|
79
|
+
goto right;
|
80
|
+
else
|
81
|
+
goto guess;
|
77
82
|
|
78
|
-
|
83
|
+
right:
|
79
84
|
puts("Right!")
|
80
85
|
|
81
86
|
Working around this limitation is left as an exercise for the reader.
|
data/README.txt
CHANGED
@@ -9,9 +9,14 @@ License:: 2-clause BSD-Style (see LICENSE.txt)
|
|
9
9
|
== DESCRIPTION:
|
10
10
|
|
11
11
|
Reconsidered adds a vital and sorely missed language feature to Ruby: the
|
12
|
-
well known and widely loved GO TO operation
|
13
|
-
|
14
|
-
|
12
|
+
well known and widely loved GO TO operation.
|
13
|
+
|
14
|
+
== OVERVIEW:
|
15
|
+
|
16
|
+
As discussed in Donald Knuth's seminal paper {<em>Structured Programming
|
17
|
+
with <tt>go to</tt> Statements</em>} (see REFERENCES, below), GOTO can be an
|
18
|
+
important part of your structured programming toolkit -- but it has not been
|
19
|
+
available in Ruby until now.
|
15
20
|
|
16
21
|
However, this implementation is itself severely limited -- it only allows
|
17
22
|
execution to jump to a point in the program which has already been passed
|
@@ -70,12 +75,12 @@ statement which has already been executed, unlike the GOTO statement in,
|
|
70
75
|
e.g. C, which can be used to jump forward (but only within a given
|
71
76
|
function):
|
72
77
|
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
78
|
+
if (num == guess)
|
79
|
+
goto right;
|
80
|
+
else
|
81
|
+
goto guess;
|
77
82
|
|
78
|
-
|
83
|
+
right:
|
79
84
|
puts("Right!")
|
80
85
|
|
81
86
|
Working around this limitation is left as an exercise for the reader.
|
data/lib/reconsidered.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reconsidered
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.9.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -45,20 +45,7 @@ dependencies:
|
|
45
45
|
version: '3.1'
|
46
46
|
description: ! 'Reconsidered adds a vital and sorely missed language feature to Ruby: the
|
47
47
|
|
48
|
-
well known and widely loved GO TO operation
|
49
|
-
|
50
|
-
seminal paper {<em>Structured Programming with <tt>go to</tt>
|
51
|
-
|
52
|
-
Statements</em>} (see REFERENCES, below).
|
53
|
-
|
54
|
-
|
55
|
-
However, this implementation is itself severely limited -- it only allows
|
56
|
-
|
57
|
-
execution to jump to a point in the program which has already been passed
|
58
|
-
|
59
|
-
during execution of the program; it is thus less general purpose a tool than
|
60
|
-
|
61
|
-
the true GOTO of languages such as Fortran.'
|
48
|
+
well known and widely loved GO TO operation.'
|
62
49
|
email:
|
63
50
|
- jwise@draga.com
|
64
51
|
executables: []
|
@@ -108,8 +95,6 @@ rubygems_version: 1.8.24
|
|
108
95
|
signing_key:
|
109
96
|
specification_version: 3
|
110
97
|
summary: ! 'Reconsidered adds a vital and sorely missed language feature to Ruby: the
|
111
|
-
well known and widely loved GO TO operation
|
112
|
-
paper {<em>Structured Programming with <tt>go to</tt> Statements</em>} (see REFERENCES,
|
113
|
-
below)'
|
98
|
+
well known and widely loved GO TO operation.'
|
114
99
|
test_files:
|
115
100
|
- test/test_reconsidered.rb
|