|
All, Every example of a choice statement I have seen so far uses a
leaf to define the information for a particular case. Yet I am wondering if the below example would be allowed? I am assuming that groupings of dogtreat, and feed_cow are
defined elsewhere, and may have multiple leaf objects defined inside. Thanks for your thoughts on this, Jason Nixon choice moof
{
description "is it a cow or a dog";
case dog
{
container dog
{
description "awww puppies are cute";
uses
dogtreat;
}
}
case cow
{
container cow
{
description "got some hay?";
uses
feed_cow;
}
}
}//end choice |