about summary refs log tree commit diff stats
path: root/real_files.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-09-18 09:06:34 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-09-18 09:09:00 -0700
commit4de96970f192bc2226250e52d1366e985db90ab5 (patch)
tree652073f7f234990d954724b0e896a92f75e51595 /real_files.mu
parent51ae6e61e2d14354e66b95cc028b8d1ebddfdc74 (diff)
downloadmu-4de96970f192bc2226250e52d1366e985db90ab5.tar.gz
3400
Undo commit 3340. Let's standardize names of non-core files to only have
dashes. That's also consistent with the edit/ and sandbox/ apps. Mu
programmers will tend to pervasively use dashes, just like Lisp
programmers.

Scripts will continue to use underscores..
Diffstat (limited to 'real_files.mu')
-rw-r--r--real_files.mu18
1 files changed, 0 insertions, 18 deletions
diff --git a/real_files.mu b/real_files.mu
deleted file mode 100644
index 78108fbe..00000000
--- a/real_files.mu
+++ /dev/null
@@ -1,18 +0,0 @@
-# example program: read a character from one file and write it to another
-# BEWARE: this will modify your file system
-# before running it, put a character into /tmp/mu-x
-# after running it, check /tmp/mu-y
-
-def main [
-  local-scope
-  f:num/file <- $open-file-for-reading [/tmp/mu-x]
-  $print [file to read from: ], f, 10/newline
-  c:char, eof?:boolean <- $read-from-file f
-  $print [copying ], c, 10/newline
-  f <- $close-file f
-  $print [file after closing: ], f, 10/newline
-  f <- $open-file-for-writing [/tmp/mu-y]
-  $print [file to write to: ], f, 10/newline
-  $write-to-file f, c
-  f <- $close-file f
-]
a2e862e616eba862ac80f5ee0003d1aa984a32'>^
34a60763 ^

b3556b21 ^
4c13e1f2 ^
b3556b21 ^
4c13e1f2 ^




















62cd83ba ^

4c13e1f2 ^












4c13e1f2 ^

























34a60763 ^
4c13e1f2 ^
34a60763 ^
4c13e1f2 ^




62cd83ba ^
4c13e1f2 ^
b3556b21 ^






62cd83ba ^



4c13e1f2 ^
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152