October 27, 2005 Announce » Re: DMD 0.137 release | |||
|---|---|---|---|
| |||
...is not RAII , is auto-typed auto C d = new C(); // c is RAII, is... | |||
October 26, 2005 Announce » Re: DMD 0.137 release | |||
|---|---|---|---|
| |||
...RAII. The initializer is another matter, though. If it's 'new', it's not RAII... | |||
October 26, 2005 Announce » Re: DMD 0.137 release | |||
|---|---|---|---|
| |||
...arguments); At the same time, the old RAII meaning of auto would be deprecated, as... | |||
October 26, 2005 Announce » Re: DMD 0.137 release | |||
|---|---|---|---|
| |||
...raii c = new classname(); // RAII, heap alloc raii d = classname(); // RAII, stack alloc auto raii... | |||
October 26, 2005 Announce » Re: DMD 0.137 release | |||
|---|---|---|---|
| |||
...share the same name as the unrelated (RAII) auto. Not only it has now that... | |||
October 26, 2005 Announce » Re: DMD 0.137 release | |||
|---|---|---|---|
| |||
...opCall to all classes, which are translated to RAII constructors when invoked from an initializer ;) | |||
October 26, 2005 Announce » Re: DMD 0.137 release | |||
|---|---|---|---|
| |||
...to RAII anymore? I.e. would I also be able to create a RAII object... | |||
October 26, 2005 Announce » Re: DMD 0.137 release | |||
|---|---|---|---|
| |||
...get confusing very quickly. IMHO the non-RAII keyword should be something different. I think... | |||
October 25, 2005 Announce » Re: DMD 0.137 release | |||
|---|---|---|---|
| |||
...an RAII class object would be:
auto c = classname(arguments);
and a non-RAII class... | |||
September 28, 2005 Learn » Re: References and deleting objects Clarification | |||
|---|---|---|---|
| |||
Very much agreed. Cross-scope RAII is awkward to impossible in D, while shared_ptr... | |||
Copyright © 1999-2021 by the D Language Foundation