Hi --

On Wed, 26 Apr 2006, Jamal Mazrui wrote:

> First, I'm curious why a string delimited with apostrophe characters is
> not interpreted completely literally.  Why does the language make an
> exception for the backslash character so that it needs to be doubled
> there as well?

Because you need the backslash to do:

   '\''

so then you need a way to indicate the backslash itself :-)


David

-- 
David A. Black (dblack / wobblini.net)
Ruby Power and Light, LLC (http://www.rubypowerandlight.com)

"Ruby for Rails" PDF now on sale!  http://www.manning.com/black
Paper version coming in early May!