File:  [parser3project] / parser3 / tests / 276.html
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Tue Sep 27 21:12:08 2016 UTC (9 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, HEAD
more tests for ^reflection:delete[]

@main[]
$a[^a::create[]]

1. ^print[$a]
^reflection:delete[$a;b]
2. ^print[$a]

3. ^print[$a.CLASS]
^reflection:delete[$a.CLASS;c]
4. ^print[$a.CLASS]

5. $a.x
^reflection:delete[$a.CLASS;x]
6. $a.x

@print[x][h;k;v]
$h[^hash::create[$x]]
$result[^h.foreach[k;v]{$k='$v'}[, ]]


@CLASS
a

@create[]
$a[1]
$b[2]

@auto[]
$c[3]
$d[4]

@GET_x[]
x property


E-mail: