QVT 1.4 RTF Avatar
  1. OMG Issue

QVT14 — QVTo : Unclear collection test shorthand

  • Key: QVT14-29
  • Status: open  
  • Source: Model Driven Solutions ( Dr. Edward Willink)
  • Summary:

    8.4.5 2 states "if a collection value is passed there is an implicit comparison with the size of the collection."

    This is clearly not the intent: no Collection can ever equal its size.

    Presumably the intent is to treat if (aCollection) as a shorthand for if (aCollection->notEmpty()).

    Suggest that all shorthands are spelled out explicitly in longhand.

  • Reported: QVT 1.3 — Wed, 13 Apr 2016 08:18 GMT
  • Updated: Wed, 13 Apr 2016 08:19 GMT