File:  [parser3project] / parser3 / tests / 297.html
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Mon Oct 21 20:51:29 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
non-working getter fix test for issue #948

@main[]

a1. $o[^a::create[]]
^o.method[]

a2. $o[^a::create[]]
^o.method[value]

b1. $o[^b::create[]]
^o.method[]

b2. $o[^b::create[]]
^o.method[value]

c1. $o[^c::create[]]
^o.method[]

c2. $o[^c::create[]]
^o.method[value]

@CLASS
a

@create[init]
$log[]
$fields[^hash::create[]]

@l[v]
$log[${log}log: $v^#0A]

@p[v]
$result['^if($v is table){table}{$v}' $v.CLASS_NAME]

@method[init][str]
^if(def $init){$match[$init]}

$str[2002]

^l[before match]
^str.match[(\d+)][]{
	year: $match.1
	$match.CLASS_NAME
}
^l[after match]

match: ^p[$match]
$log

@CLASS
b

@BASE
a

@SET_DEFAULT[n;v]
^l[set_default[$n^;^p[$v]]]
$fields.$n[$v]

@CLASS
c

@BASE
b

@GET_DEFAULT[n][v]
$v[$fields.$n]
^l[get_default[$n] - ^p[$v]]
$result[$v]

E-mail: