DMD: Is it possible change compile time errors to runtime errors in Dlang?

Steven Schveighoffer schveiguy at gmail.com
Fri Mar 6 14:07:10 UTC 2020


On 3/6/20 8:59 AM, Marcone wrote:
> On Friday, 6 March 2020 at 05:31:57 UTC, Mathias Lang wrote:
>> On Friday, 6 March 2020 at 04:56:28 UTC, Marcone wrote:
>>> Is it possible change compile time errors to runtime errors in Dlang?
>>> If yes, how can I make it?
>>
>> No it's not possible, D is a statically typed language.
>> Why would you want errors that can be caught at compile time to happen 
>> at runtimes ?
> 
> I'm coming from Python

Perhaps you can share an example of your trouble, and we can explain why 
it's better to have compiler errors in that case.

-Steve


More information about the Digitalmars-d-learn mailing list