U++ framework
Do not panic. Ask here before giving up.

Home » Community » U++ community news and announcements » New Value features
New Value features [message #34239] Sat, 05 November 2011 18:13
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
Working on JSON support in U++, I have decided that Value could have members GetCount and operator[] to directly access assigned ValueArray and ValueMap.

Means that while in past we have to write

Value MyConvert::Format(const Value& v)
{
    ValueMap m = v;
    return String().Cat() << m[FIRST] << ", " << m[SECOND]);
}


it is now possible to use

Value MyConvert::Format(const Value& v)
{
    return String().Cat() << v[FIRST] << ", " << v[SECOND]);
}

Previous Topic: Migration status
Next Topic: JSON support
Goto Forum:
  


Current Time: Wed Apr 29 11:24:42 GMT+2 2026

Total time taken to generate the page: 0.00458 seconds