Skip to content

Commit

Permalink
MVal subclass
Browse files Browse the repository at this point in the history
  • Loading branch information
librasteve committed Jun 30, 2024
1 parent 9ec46c7 commit a3e1ab5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Physics/Measure.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,14 @@ class Time { ... }
class Dimensionless { ... }
class Synthetic {...}

subset MVal of Any where * ~~ Real | Math::Vector;

class Measure is export {
#Parent class for physical quantities with value, units & error
#Builds child classes such as Distance, Mass, Power, etc.

# has Real $.value is rw;
has $.value is rw;
has MVal $.value is rw;
has Unit $.units is rw;
has Error $.error is rw;

Expand Down

0 comments on commit a3e1ab5

Please sign in to comment.