4
Contributors
6
Replies
7
Views
7 Years
Discussion Span
Last Post by Stefano Mtangoo
0

Lists in python can hold different values in same container. Here is example

a = [66.25, "Iam String", wx.Button(self, "Iam a button")]

you see, same variable holds objects, integer, double and wxObjects.
I'm looking for such variable in C++

0

I have function that returns pointers to some object which two classes manipulate (only one instance of those object).Those objects differ and I had to make separate functions. In Python it was that easier and makes lazy programmers happy. I thought I can harness that in C++

Is this poor design?

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.