Menu

#3 C++ generated code should use container proxies for arrays

Unplanned
rejected
dots_cpp (1)
enhancement
dots
2015-05-13
2012-08-21
No

For non-array members container proxies are used, but for array members we don't use container proxies. This results in syntax differences.
For non-arrays it is possible to do

obj.member() = 10

but for arrays

obj.array()[3] = 10

does not work, instead you have to do

obj.array()[3].SetVal(10)

Maybe not very important, but it is a bit ugly...

To fix this the ArrayContainer has to be rewritten.

Related

Old tickets: #22

Discussion

  • Lars Hagström

    Lars Hagström - 2013-08-26
    • Milestone: --> Unplanned
     
  • Lars Hagström

    Lars Hagström - 2015-05-13
    • status: new --> rejected
     
  • Lars Hagström

    Lars Hagström - 2015-05-13

    It is unlikely that this will ever be done. And we now have new types (dict/seq) that do not do proxies either...

     
MongoDB Logo MongoDB