1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/sample
matz eb6118992b * eval.c (rb_clear_cache_by_class): new function.
* eval.c (set_method_visibility): should have clear cache forq
  updated visibility.

* numeric.c (flo_to_s): default format precision to be "%.16g".

* util.c (ruby_strtod): use own strtod(3) implementation to avoid
  locale hell.  Due to this change "0xff".to_f no longer returns 255.0

* eval.c (avalue_to_yvalue): new function to distinguish yvalue
  (no-arg == Qundef) from svalue (no-arg == Qnil).

* eval.c (rb_yield_0): use avalue_to_yvalue().

* eval.c (assign): warn if val == Qundef where it means rhs is
  void (e.g. yield without value or call without argument).

* parse.y (value_expr): need not to warn for WHILE and UNTIL,
  since they can have return value (via valued break).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-05-14 06:22:31 +00:00
..
biorhythm.rb matz - biorhythm.rb 2000-07-31 09:21:25 +00:00
cal.rb matz 2000-07-18 06:00:45 +00:00
cbreak.rb Initial revision 1998-01-16 12:19:09 +00:00
clnt.rb Initial revision 1998-01-16 12:13:05 +00:00
dbmtest.rb Initial revision 1998-01-16 12:13:05 +00:00
dir.rb Initial revision 1998-01-16 12:13:05 +00:00
dualstack-fetch.rb Synchronize MANIFEST with reality. Add missing files. 2001-05-26 03:38:39 +00:00
dualstack-httpd.rb Synchronize MANIFEST with reality. Add missing files. 2001-05-26 03:38:39 +00:00
eval.rb 2000-03-23 2000-03-23 08:37:35 +00:00
export.rb Initial revision 1998-01-16 12:13:05 +00:00
exyacc.rb This commit was generated by cvs2svn to compensate for changes in r11, 1998-01-16 12:19:22 +00:00
fact.rb This commit was generated by cvs2svn to compensate for changes in r11, 1998-01-16 12:19:22 +00:00
fib.awk Initial revision 1998-01-16 12:13:05 +00:00
fib.pl 2000-02-23 2000-02-23 05:23:12 +00:00
fib.py 1.4.0 1999-08-13 05:45:20 +00:00
fib.rb Initial revision 1998-01-16 12:13:05 +00:00
fib.scm matz 2000-11-27 09:23:38 +00:00
freq.rb 19991129 1999-11-29 06:33:02 +00:00
from.rb matz 2000-10-10 07:03:36 +00:00
fullpath.rb changes from personal modifies -- matz 2000-12-28 05:00:47 +00:00
getopts.test Initial revision 1998-01-16 12:13:05 +00:00
goodfriday.rb matz 2000-07-18 06:00:45 +00:00
irb.rb Merge from irb 0.7.3. 2001-04-30 17:54:55 +00:00
less.rb Initial revision 1998-01-16 12:13:05 +00:00
list.rb 1.4.0 1999-08-13 05:45:20 +00:00
list2.rb Initial revision 1998-01-16 12:13:05 +00:00
list3.rb Initial revision 1998-01-16 12:13:05 +00:00
mine.rb 19991201 1999-12-01 09:24:48 +00:00
mkproto.rb changes from personal modifies -- matz 2000-12-28 05:00:47 +00:00
mpart.rb 20000105 2000-01-05 04:41:21 +00:00
mrshtest.rb 000919 2000-09-19 07:54:28 +00:00
observ.rb This commit was generated by cvs2svn to compensate for changes in r372, 1999-01-20 04:59:39 +00:00
occur.pl Initial revision 1998-01-16 12:13:05 +00:00
occur.rb This commit was generated by cvs2svn to compensate for changes in r372, 1999-01-20 04:59:39 +00:00
occur2.rb matz 2000-10-02 07:48:42 +00:00
philos.rb matz 2000-09-27 09:11:13 +00:00
pi.rb Initial revision 1998-01-16 12:13:05 +00:00
rcs.awk Initial revision 1998-01-16 12:13:05 +00:00
rcs.dat Initial revision 1998-01-16 12:13:05 +00:00
rcs.rb 1.4.0 1999-08-13 05:45:20 +00:00
README 1.4.1 1999-09-16 09:40:33 +00:00
regx.rb Initial revision 1998-01-16 12:13:05 +00:00
sieve.rb 1.4.0 1999-08-13 05:45:20 +00:00
svr.rb matz 2000-11-16 07:24:21 +00:00
test.rb * eval.c (rb_clear_cache_by_class): new function. 2002-05-14 06:22:31 +00:00
time.rb matz 2000-09-15 06:00:30 +00:00
trojan.rb 1.4.0 1999-08-13 05:45:20 +00:00
tsvr.rb matz 2000-11-16 07:24:21 +00:00
uumerge.rb changes from personal modifies -- matz 2000-12-28 05:00:47 +00:00

README		this file
biorhythm.rb	biorhythm calculator
cal.rb		cal(1) clone
cbreak.rb	no echo done by ioctl
clnt.rb		socket client
dbmtest.rb	test for dbm
dir.rb		directory access
dualstack-fetch.rb	IPv6 demo
dualstack-httpd.rb	IPv6 demo
dstore.rb	object database on dbm
eval.rb		simple evaluator
export.rb	method access example
exyacc.rb	extrace BNF from yacc file
fact.rb		factorial calculator
fib.awk		Fibonacci number (AWK)
fib.pl		Fibonacci number (Perl)
fib.py		Fibonacci number (Python)
fib.rb		Fibonacci number (Ruby)
fib.scm		Fibonacci number (Scheme)
freq.rb		count word occurrence
from.rb		scan mail spool
fullpath.rb	convert ls -lR to fullpath format
getopts.test	test fot getopt.rb
goodfriday.rb	print various christian calendar event.
io.rb		io test
irb.rb		interactive ruby
less.rb		front end for less
list.rb		stupid object sample
list2.rb	stupid object sample
list3.rb	stupid object sample
mine.rb		simple mine sweeper	
mkproto.rb	extract protptype from C
mpart.rb	split file int multi part
mrshtest.rb	test marshal
observ.rb	observer design pattern sample
occur.pl	count word occurrence (Perl)
occur.rb	count word occurrence (Ruby)
occur2.rb	count word occurrence - another style
philos.rb	famous dining philosophers
pi.rb		calculate PI
rcs.awk		random character stereogram (AWK)
rcs.rb		random character stereogram (Ruby)
rcs.dat		data for random character stereogram
rd2html.rb	rd (Ruby Document) to HTML translator
regx.rb		regular expression tester
sieve.rb	sieve of Eratosthenes
svr.rb		socket server
test.rb		test suite used by `make test'
time.rb		/usr/bin/time clone
trojan.rb	simple tool to find file that may be trojan horse.
tsvr.rb		socket server using thread
uumerge.rb	merge files and uudecode them