What is the reasoning behind the lack of conversions when passing parameters
    Carl Sturtivant 
    sturtivant at gmail.com
       
    Wed Feb  7 06:36:13 UTC 2024
    
    
  
On Tuesday, 6 February 2024 at 10:10:32 UTC, FeepingCreature 
wrote:
> I just don't think that "this feature can be abused" is a 
> convincing argument. So what? Make it opt-in, mark it as 
> dangerous, then when people use it it's on them.
>
> I don't want implicit conversion to always be enabled, I want 
> it to be enabled by a keyword or UDA. @implicit or something. 
> Even per-parameter would be useful!
+1
@implicit
Exactly what's needed under the present circumstances. Naive 
scripting with Variant could then work out of the box, for 
example, instead of being completely blocked.
    
    
More information about the Digitalmars-d
mailing list