c3d / db48x

RPL runtime for the DM42 calculator, in the spirit of HP48/49/50
http://48calc.org
GNU Lesser General Public License v3.0
85 stars 10 forks source link

Unit conversion fails for quoted units #1246

Open c3d opened 2 hours ago

c3d commented 2 hours ago

If a unit is in an equation, then conversion fails.

If a unit is in a tagged object, the conversion fails.

c3d commented 2 hours ago

Just like we have expression::as_expression, we need to have a unit::as_unit.

For simplicity, maybe use expression::get(obj) and unit::get(obj).