On Monday, 29 November 2021 at 08:35:06 UTC, Stanislav Blinov wrote:
>(..)
Oh i see.., thanks for being patient with me and providing me links where i can read more about it! sorry for derailing the post!
November 29, 2021 Re: How about some __initialize magic? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Stanislav Blinov | On Monday, 29 November 2021 at 08:35:06 UTC, Stanislav Blinov wrote: >(..) Oh i see.., thanks for being patient with me and providing me links where i can read more about it! sorry for derailing the post! |
December 13, 2021 Re: How about some __initialize magic? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Stanislav Blinov | On Saturday, 27 November 2021 at 21:56:05 UTC, Stanislav Blinov wrote: >
but this?..
What about taking inspiration from C++'s https://en.cppreference.com/w/cpp/language/new#Placement_new ? Allocators could be supported by either
? |
December 19, 2021 Re: How about some __initialize magic? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Stanislav Blinov | On Saturday, 27 November 2021 at 21:56:05 UTC, Stanislav Blinov wrote: >D lacks syntax for initializing the uninitialized. We can do this: [...] Think this can help with that |
January 04, 2022 Re: How about some __initialize magic? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Stanislav Blinov | On Saturday, 27 November 2021 at 21:56:05 UTC, Stanislav Blinov wrote: >... Nice idea, placement new really missing from D. I have reverse problem with emplace then you.
Example:
Error: D has one good thing, you can create custom emplace which run your own code between emplaceInitialize and ctor. You can initialize your own vptr before ctor. |