[#1026] Is this a bug? — Dave Thomas <Dave@...>

18 messages 2000/01/03

[#1084] Infinite loop — Dave Thomas <Dave@...>

17 messages 2000/01/11

[#1104] The value of while... — Dave Thomas <Dave@...>

24 messages 2000/01/11

[ruby-talk:01027] 8 bit characters - the plot thickens

From: Dave Thomas <Dave@...>
Date: 2000-01-03 17:45:55 UTC
List: ruby-talk #1027
I'm getting confused.

  print "Helln", "Dave\n";

(note the has an accent) produces

  HellnDave

while

  print "Hell\n", "Dave\n";

gives

  Hell  Dave

Also, it seems like you can call methods with accents in their names,
but when you try to reference such a variable, Ruby is sucking up the
next character and getting confused.

Regards

Dave


In This Thread

Prev Next