October 30, 2025, 02:33:56 AM

News:

IWBasic runs in Windows 11!


Automatic conversion operators

Started by Parker, January 22, 2006, 04:57:32 PM

Previous topic - Next topic

0 Members and 5 Guests are viewing this topic.

Parker

In C++ they fall under operator overloading, but I'm wondering if there is a possibility that we can have automatic conversions in classes. So for example, we could define the subroutine int() inside a class and return its m_something variable.

Just something I'm hoping for, no pressure or anything though. Thanks.