Home My Page Projects Code Snippets Project Openings diderot

# SCM Repository

[diderot] Diff of /branches/pure-cfg/test/fields.diderot
 [diderot] / branches / pure-cfg / test / fields.diderot

# Diff of /branches/pure-cfg/test/fields.diderot

revision 1027, Sun May 1 16:25:10 2011 UTC revision 1028, Sun May 1 16:30:06 2011 UTC
# Line 10  Line 10
10
12
13  // HEY (BUG) I thought we had scalar multiplication of fields? this:  // (1) HEY (BUG) I thought we had scalar multiplication of fields? this:
14  field#1(2)[2] Vpos = Vimg ⊛ ctmr; field#1(2)[2] V = 1.0*Vpos;  field#1(2)[2] Vpos = Vimg ⊛ ctmr; field#1(2)[2] V = 1.0*Vpos;
15  // causes:  // causes:
16  //   translate (V00E2, *001E, ...)  //   translate (V00E2, *001E, ...)
# Line 18  Line 18
18  //     raised at translate/translate-basis.sml:192.41-192.43  //     raised at translate/translate-basis.sml:192.41-192.43
19  //     raised at translate/translate-basis.sml:189.22-189.100  //     raised at translate/translate-basis.sml:189.22-189.100
20  //  //
21  // This also fails:  // (2) This also fails:
22  // field#1(2)[2] V = 1.0*(Vimg ⊛ ctmr);  // field#1(2)[2] V = 1.0*(Vimg ⊛ ctmr);
23
24  // HEY (BUG): can't seem to even assign fields!  This also fails:  // (3) HEY (BUG): can't seem to even assign fields!  This also fails:
25  //field#1(2)[2] Vpos = Vimg ⊛ ctmr; field#1(2)[2] V = Vpos;  //field#1(2)[2] Vpos = Vimg ⊛ ctmr; field#1(2)[2] V = Vpos;
26
27  // HEY (BUG): I thought we had addition of fields?  This also fails:  // (4) HEY (BUG): I thought we had addition of fields?  This also fails:
28  //field#1(2)[2] Vpos = Vimg ⊛ ctmr; field#1(2)[2] V = Vpos + Vpos;  //field#1(2)[2] Vpos = Vimg ⊛ ctmr; field#1(2)[2] V = Vpos + Vpos;
29
30  // NOTE: these bugs are a symptom of the mishandling of variable scoping.  // NOTE: these bugs are a symptom of the mishandling of variable scoping.

Legend:
 Removed from v.1027 changed lines Added in v.1028