Re: Constructor

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 4 Nov 2024 at 21:02, Sven Bieg via Gcc-help
<gcc-help@xxxxxxxxxxx> wrote:
>
> It also would be helpful to have a return value.
>
> auto str=new String("abc")

This expression already has a return value, new String("abc") returns a String*

> This should produce a String-handle Handle<String>.
>
> String::?String(const char*);
> Handle<String> String::=String(size_t len, char const* str);
>
> Right?

This seems like very novel invention that isn't at all how C++ works.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux