How to preserve function parameters scopeness

Petar Petar
Fri Jun 7 15:58:00 UTC 2019


On Thursday, 6 June 2019 at 11:26:20 UTC, Mike Franklin wrote:
> On Thursday, 6 June 2019 at 09:45:08 UTC, Ivan Butygin wrote:
>> I want to extract function parameters types from declaration, 
>> remove some of them and construct new function pointer type 
>> from remaining types. Doing this in obvious way cause
>> parameters to lost their scope storage class: 
>> https://run.dlang.io/is/cQBFRW
>
> I don't understand your example that well, but are you perhaps 
> encountering this issue? 
> https://forum.dlang.org/post/yixvtosbkuphnvxydtxr@forum.dlang.org

The issue is that `ref`, `scope`, `return`, etc. are parameter 
storage classes and not type constructors. It is unrelated to 
your post.


More information about the Digitalmars-d mailing list