Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Are there automatic casts to the right type?

automatic casts right type
0
Posted

Are there automatic casts to the right type?

0

No, because Seed7 is strong typed. This means that for every expression (and sub expression) you know its type at compile time without knowing where this expression is used. Although this means that you have to convert types explicit (for example from integer to float) it has more advantages than disadvantages: • The overloading rules are much simpler. • An expression can be understood without it’s calling context. • Errors caused by unplanned automatic type conversions cannot happen. • Since you have to do type conversions explicit you are more aware of the run time overhead.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123