modelica / ModelicaStandardLibrary

Free (standard conforming) library to model mechanical (1D/3D), electrical (analog, digital, machines), magnetic, thermal, fluid, control systems and hierarchical state machines. Also numerical functions and functions for strings, files and streams are included.
https://doc.modelica.org
BSD 3-Clause "New" or "Revised" License
452 stars 165 forks source link

Skip NULL checks for passed external objects #4406

Closed beutlich closed 1 week ago

beutlich commented 1 month ago

This is in line with https://github.com/modelica-3rdparty/Modelica_DeviceDrivers/issues/153 and specification change/clarification for https://github.com/modelica/ModelicaSpecification/issues/3500.

I labeled with requires Modelica 3.7, but I am actually not sure.

beutlich commented 1 month ago

We have it in M_DD without NULL checks for years. Thus it rather is an issue of code style than technical necessity.