Elementary cellular automaton: Difference between revisions
Content added Content deleted
(Added Ada) |
m (→{{header|Ada}}: Fixed typo (independant→ independent)) |
||
Line 38: | Line 38: | ||
function Translate (Rule : in t_Rule) return t_RuleA is |
function Translate (Rule : in t_Rule) return t_RuleA is |
||
-- Better not use Pack attribute and Unchecked_Conversion |
-- Better not use Pack attribute and Unchecked_Conversion |
||
-- because it would not be endianness |
-- because it would not be endianness independent... |
||
Remain : t_Rule := Rule; |
Remain : t_Rule := Rule; |
||
begin |
begin |