From: Yohanes Santoso Date: 2003-02-06T12:08:07+09:00 Subject: Re: %L, %l revisited -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Tom Sawyer writes: > On Wednesday 05 February 2003 02:44 pm, Hal E. Fulton wrote: > > well, noting that all my ruby code, and i have a fair amount installed, falls > in here (i don't use usr/local/): > > silver% cd /usr/lib/ruby > silver% grep -r -e '^.*<<-\w*\s*,.*$' ./ jenny:/project/remacs> grep '<<' * buffer.rb: doc(self, :create, <<-HERE, [:destroy, [Memory, :mmap]]) buffer.rb: doc(self, :destroy, <<-HERE, [:create, [Memory, :mmap]]) buffer.rb: doc(self, :rename, <<-HERE, :auto_deduce) buffer.rb: doc(self, :point, <<-HERE, [:insert, :delete, :append, :point=]) buffer.rb: doc(self, :point=, <<-HERE, :auto_deduce) buffer.rb: doc(self, :insert, <<-HERE, [:delete, :append]) buffer.rb: doc(self, :delete, <<-HERE, :auto_deduce) buffer.rb: doc(self, :append, <<-HERE, :auto_deduce) buffer.rb: doc(self, :compact, <<-HERE, [[Memory, :mmap]]) buffer.rb: doc(self, :locale, <<-HERE, [:encoding, :locale=]) buffer.rb: doc(self, :locale=, <<-HERE, :auto_deduce) buffer.rb: doc(self, :encoding, <<-HERE, :auto_deduce) buffer.rb: doc(self, :encoding=, <<-HERE, :auto_deduce) buffer.rb: doc(self, :group, <<-HERE, [:create, :destroy, :rename, :group=]) buffer.rb: doc(self, :group=, <<-HERE, :auto_deduce) buffer.rb: doc(self, :region, <<-HERE, :internal) buffer.rb: doc(self, :region=, <<-HERE, :internal) documentation.rb: (Object, :doc, <<-HERE, nil) documentation.rb: (String, :new, <<-HERE, nil) documentation.rb: (Kernel, :global_variables, <<-HERE, nil) documentation.rb: doc("Module", :class_variables, <<-HERE, nil) The above result has been edited; results not related to usage of HERE docs followed by other arguments have been edited out. The doc method refered throughout has this signature: def doc(class, method, content, related_methods); .... end > that makes 9. (and i note they are all apart of the ruby package itself) Now it is 21+9=30. > at least not in Ruby. personally i think here docs a PERLISM, anyway. Shell scripting languages already have it before there was perl. But, I do not know if it originated from sh or something even more ancient. YS. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (GNU/Linux) Comment: Processed by Mailcrypt 3.5.8 iEYEARECAAYFAj5B0YwACgkQEOgCkEGX4MLC+gCcDS5kTTz9kujwC2l9sNrJrnAk XVIAnjr6A0H2PbIWW4pNOJSKGy4lwvfr =G7ix -----END PGP SIGNATURE-----