Re: do I incur a penality on compile time if I explicitly declare default behavior ?

2021-06-22 Thread max haughton via Digitalmars-d-learn
On Monday, 21 June 2021 at 04:12:55 UTC, someone wrote: I mean, coding as following: ```d int intWhatever = 0; /// default being zero anyway foreach (classComputer objComputer, objComputers) { ... } /// explicitly declaring the type instead of letting the compiler to figure it out struc

Re: do I incur a penality on compile time if I explicitly declare default behavior ?

2021-06-22 Thread frame via Digitalmars-d-learn
On Monday, 21 June 2021 at 22:56:30 UTC, someone wrote: This might happen even though you wrote the actual type at the time -- sometimes library code changes the type, and just uses alias this to allow original code to compile. For what I was reading a couple of days ago while navigating