about summary refs log tree commit diff stats
path: root/052tangle.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-02-25 22:45:25 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-02-25 22:48:22 -0800
commitb436291f403d5ca1914c58fc995949275a9fab44 (patch)
treeb781b9aa48bc9fd0f51ba52a7a31e149317723dc /052tangle.cc
parent9e91a21ef385e33ca373e4308ca3227c228fe09b (diff)
downloadmu-b436291f403d5ca1914c58fc995949275a9fab44.tar.gz
2711 - permit boolean<-number conversions
I might change my mind on this, but it's worth a try after watching Ella
run up against it today. I got her to build the recipe 'odd?', but then
it failed to run because she couldn't convert a numeric remainder to a
number without a conditional (which I haven't taught her yet).

For now I don't change the value in the boolean, so booleans can store
arbitrary bit patterns like in C. We just say that 0 is false and
anything else is true. I *think* that doesn't break the type system..
Diffstat (limited to '052tangle.cc')
0 files changed, 0 insertions, 0 deletions
rtik.com> 2021-02-07 00:20:29 -0800 7690' href='/akkartik/mu/commit/apps/parse-int.mu?h=main&id=74f1512ff113cf35706af57e9d40c78b7d77f49e'>74f1512f ^
c8e41a47 ^
ad61776f ^



c8e41a47 ^
ad61776f ^

c8e41a47 ^
ad61776f ^


c8e41a47 ^
ad61776f ^


c8e41a47 ^
ad61776f ^
c8e41a47 ^
ad61776f ^

c8e41a47 ^
ad61776f ^
c8e41a47 ^


ad61776f ^


c8e41a47 ^
ad61776f ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47