Menu

#9 Ruby strings and comments

open-later
pyrou
8
2007-11-09
2007-06-04
Anonymous
No

Valid ruby code like:
puts "Hello " << name.capitalize << "."
Can be used, but:
puts "Hello #{name.capitalize}."
Will break out of the string and make everything after the # a comment.

Discussion

  • pyrou

    pyrou - 2007-09-19
    • priority: 5 --> 7
    • assigned_to: nobody --> pyrou
    • status: open --> open-later
     
  • pyrou

    pyrou - 2007-09-19

    Logged In: YES
    user_id=1695796
    Originator: NO

    Same bug on php or javascript :s
    I'm working on new regexp solving this.

    echo "hello // this is not a comment";
    document.print("hello // this is not a comment");

     
  • pyrou

    pyrou - 2007-10-24
    • priority: 7 --> 8
    • status: open-later --> pending-later
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending-later --> closed-later
     
  • Nobody/Anonymous

    Logged In: NO

    php comment are fixed on svn/devel v1
    Thanks to MDK

    Will be same for ruby ;)

     
  • Nobody/Anonymous

    • status: closed-later --> open-later
     

Log in to post a comment.