Diff for /parser3/tests/261.html between versions 1.3 and 1.7

version 1.3, 2014/06/29 06:21:38 version 1.7, 2023/09/28 12:41:58
Line 8  $string_methods[^reflection:methods[stri Line 8  $string_methods[^reflection:methods[stri
 }  }
   
 $s[]  $s[]
   $w[     ]
 $v[$void]  $v[$void]
   
 Empty string vs void:  Empty string vs void:
Line 18  Json (void as null): ^json:string[$s;$.v Line 19  Json (void as null): ^json:string[$s;$.v
 Length: ^s.length[] vs ^v.length[]  Length: ^s.length[] vs ^v.length[]
 Double: ^s.double(0) vs ^v.double(0)  Double: ^s.double(0) vs ^v.double(0)
 Base64: "^s.base64[]" vs "^v.base64[]"  Base64: "^s.base64[]" vs "^v.base64[]"
 Hash compatibility: "$s.key" "$v.key"  Hash compatibility: "$s.key" "$w.key" "$v.key"
   More hash compatibility: "^b[^s.contains[key]]" "^b[^w.contains[key]]" "^b[^w.contains[key]]"
   Methods are not visible: "^show[$s.length]" "^show[$w.length]" "^show[$v.length]"
   
 Non-empty string: ^try{  Non-empty or whitespace string not hash compatible: ^try-catch{
         $s[string]          $s[string]
         $s.key          $s.key
 }{  }
         $exception.handled(1)  Absent method empty string error: ^try-catch{
         has no hash compatibility          $s[]
           ^s.something[]
   }
   Absent method void error: ^try-catch{
           ^v.something[]
   }
   Absent method non-empty string error: ^try-catch{
           $s[string]
           ^s.something[]
 }  }
   
 ^string_methods.foreach[k;v]{  ^string_methods.foreach[k;v]{
         ^if(!($v.$k is 'junction')){          ^if(!^void_methods.contains[$k]){
                 String method $k absent in void                  String method $k absent in void
         }          }
 }  }
   
   @b[v]{
   ^if($v){true}{false}
   
   @show[v]
   $v.CLASS_NAME

Removed from v.1.3  
changed lines
  Added in v.1.7


E-mail: