raz / conform / err / StringToSlice.raz

12 lines · 225 B · raw · history · last change 4402a682

1(* A string is a []const U8, and doesn't go into a []U8, which could
2 write its constant bytes (report 5.10). *)
3module StringToSlice;
4
5proc main*;
6var s: []U8;
7begin
8 s := "abc";
9 s[0] := 0;
10end;
11
12end StringToSlice.