File:  [parser3project] / parser3 / www / htdocs / Attic / _bug.html
Revision 1.74: download - view: text, annotated - select for diffs - revision graph
Thu Dec 23 14:51:32 2004 UTC (21 years, 6 months ago) by paf
Branches: MAIN
CVS tags: HEAD
bugfix: table->hash now regards _default

@print[title;hash][key;value]
<p>$title ^hash.foreach[key;value]{$key}[ | ]</p>
=$hash.[zzz].rrggbb=

@main[]
$table[^table::create{color	rrggbb
red	ff0000
green	00ff00
blue	0000ff
_default	000000}
]

$c_hash[
	$.red[
		$.color[red]
		$.rrggbb[ff0000]
	]
	$.green[
		$.color[green]
		$.rrggbb[00ff00]
	]
	$.blue[
		$.color[blue]
		$.rrggbb[0000ff]
	]
	$._default[
		$.color[_default]
		$.rrggbb[000000]
	]
]

$a_hash[^table.hash[color]]
^print[a_hash:;$a_hash]

$b_hash[^hash::create[]]
^table.menu{
	^b_hash.add[$.[$table.color][$table.fields]]
}
^print[b_hash:;$b_hash]

^print[c_hash:;$c_hash]

E-mail: