File:  [parser3project] / parser3 / tests / 254.html
Revision 1.7: download - view: text, annotated - select for diffs - revision graph
Sun Oct 20 21:10:09 2013 UTC (12 years, 8 months ago) by moko
Branches: MAIN
CVS tags: release_3_5_1, release_3_5_0, release_3_4_6, release_3_4_5, release_3_4_4, release_3_4_3, HEAD
try_catch -> try-catch

@main[]

$a[ $.v1[1] $.v2[2] $.v3[3] ]
$b[^test::create[]]

$c[$b]

^reflection:copy[$a;$b]

^if(^reflection:uid[$b] eq ^reflection:uid[$c]){Same uid}

$str[value] $c[$str]
^if(^reflection:uid[$str] eq  ^reflection:uid[$c]){Same string}

Object b:
^print[^hash::create[$b]]

^reflection:copy[$b;$a]

Hash a:
^print[$a]

$string[string]
^try-catch{
	^reflection:copy[$string;$a]
}
^try-catch{
	^reflection:copy[$a;$string]
}

@print[hash]
^hash.foreach[k;v]{$k = $v
}

@CLASS
test

@create[]
$v2[3]

@SET_v3[value]
$another3[=$value=]

E-mail: