Root/
Source at commit c9af8cd0fe183d31d1bc7079cb8e7deec3bbe74d created 13 years 9 months ago. By werner, The mechanism for selecting points for measurements reaches its limits when using frames to encapsulate building blocks, e.g., like macros or functions in a programming language. Since measurements only know about the frame containing a vector but not the frames containing that frame, invocations of this frame from different places can only be distinguished within the min/next/max scheme. (See the example in README.) | |
---|---|
1 | #!/bin/sh |
2 | . ./Common |
3 | |
4 | ############################################################################### |
5 | |
6 | fped_dump "delete vector: it disappears" <<EOF |
7 | v: vec @(0mm, 0mm) |
8 | %del v |
9 | EOF |
10 | expect <<EOF |
11 | /* MACHINE-GENERATED ! */ |
12 | |
13 | package "_" |
14 | unit mm |
15 | EOF |
16 | |
17 | #------------------------------------------------------------------------------ |
18 | |
19 | fped_dump "delete vector: references disappear" <<EOF |
20 | v: vec @(0mm, 0mm) |
21 | line v v |
22 | %del v |
23 | EOF |
24 | expect <<EOF |
25 | /* MACHINE-GENERATED ! */ |
26 | |
27 | package "_" |
28 | unit mm |
29 | EOF |
30 | |
31 | #------------------------------------------------------------------------------ |
32 | |
33 | fped_dump "delete vector: measurements disappear (same frame)" <<EOF |
34 | v: vec @(0mm, 0mm) |
35 | meas v -> v |
36 | %del v |
37 | EOF |
38 | expect <<EOF |
39 | /* MACHINE-GENERATED ! */ |
40 | |
41 | package "_" |
42 | unit mm |
43 | EOF |
44 | |
45 | #------------------------------------------------------------------------------ |
46 | |
47 | fped_dump "delete vector: measurements disappear (other frame)" <<EOF |
48 | frame f { |
49 | v: vec @(0mm, 0mm) |
50 | } |
51 | frame f @ |
52 | meas f.v -> f.v |
53 | %del f.v |
54 | EOF |
55 | expect <<EOF |
56 | /* MACHINE-GENERATED ! */ |
57 | |
58 | frame f { |
59 | } |
60 | |
61 | package "_" |
62 | unit mm |
63 | frame f @ |
64 | EOF |
65 | |
66 | ############################################################################### |
67 |
Branches:
master