New attribute to control references

Salih Dincer salihdb at hotmail.com
Tue Apr 26 00:16:23 UTC 2022


On Monday, 25 April 2022 at 16:06:00 UTC, Loara wrote:
> I wrote a simple article about an extended `scope` attribute 
> that manages pointers and types that contains indirections:
> https://github.com/Loara/Rethink_scope_in_D/blob/main/README.md

It sounds good!

I will definitely read it, but it should not stay in theory.  Is 
there a way to try it?  For example, with the UDA...

On Monday, 25 April 2022 at 16:06:00 UTC, Loara wrote
> I called this new attribute `rscope` (this is a temporary name, 
> I'll change it in future in order to avoid misunderstandings), 
> any variable or function parameter marked as `rscope` can be 
> referenced only by other variables that are also `rscope`:

I think it makes a lot of sense!  I think rscope here means 
@(referenceScope)?

SDB at 79


More information about the Digitalmars-d mailing list