rongyj (Yongjun Rong)
- Login: rongyj
- Email: rongyj@hotmail.com
- Registered on: 11/05/2011
- Last sign in: 11/05/2011
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
11/05/2011
-
04:45 AM Ruby Bug #5571: Syntax Error when put String eql? with logical operation ("||") or "("&&")
- ruby-head :001 > test="test"
=> "test"
ruby-head :002 > if test.eql?"test" || test.eql?"test1" ; puts "true"; end
SyntaxError: (irb):2: syntax error, unexpected tSTRING_BEG, expecting keyword_then or ';' or '\n'
if test.eql?"test" ... -
04:36 AM Ruby Bug #5571 (Rejected): Syntax Error when put String eql? with logical operation ("||") or "("&&")
- There has a syntax error when try to connect two string eqls? with the logical operation ("||") and ("&&") as below
{code}
ruby-head :001 > test="test"
=> "test"
ruby-head :002 > puts test.eql?("test") || test.eql?("test1")
true
...