Commit Graph

4 Commits

Author SHA1 Message Date
Kartik Agaram dd66068298 4261 - start using literals for 'true' and 'false'
They uncovered one bug: in edit/003-shortcuts.mu
  <scroll-down> was returning 0 for an address in one place where I
  thought it was returning 0 for a boolean.

Now we've eliminated this bad interaction between tangling and punning
literals.
2018-06-17 00:29:22 -07:00
Kartik K. Agaram 06e0edbaf8 4230 2018-03-16 03:15:08 -07:00
Kartik K. Agaram 7452d0525e 4228 2018-03-15 23:29:08 -07:00
Kartik K. Agaram 9b4f4b3e1c 4227 - second example implementing exceptions
I think I like this better. It doesn't violate the type system. Still two
sources of klunkiness:

a) We need to add dead code because we don't consider exceptions when we
add implicit 'return' statements to functions. Should be easy to fix.
b) Still no way to create a generic 'try' function. This will be hard to
fix.
2018-03-15 23:01:45 -07:00