Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/vis12/bugs/resolved/bug012.diderot
ViewVC logotype

Diff of /branches/vis12/bugs/resolved/bug012.diderot

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

branches/vis12/bugs/bug012.diderot revision 2181, Sat Feb 23 19:07:06 2013 UTC branches/vis12/bugs/resolved/bug012.diderot revision 2184, Sun Feb 24 01:59:49 2013 UTC
# Line 22  Line 22 
22  //   raised at translate/translate.sml:380.110-380.112  //   raised at translate/translate.sml:380.110-380.112
23  //   raised at translate/translate.sml:320.29-320.31  //   raised at translate/translate.sml:320.29-320.31
24  //   raised at translate/translate.sml:56.22-58.5  //   raised at translate/translate.sml:56.22-58.5
25  function vec2 align (vec2 vv, vec2 ref) = (vv if (vv•ref > 0) else -vv);  // FIXED
26    //function vec2 align (vec2 vv, vec2 ref) = (vv if (vv•ref > 0) else -vv);
27    
28    
 /*  
29  // BUG: another way of expressing what is needed, but it generates:  // BUG: another way of expressing what is needed, but it generates:
30  // [bug008.diderot:34.3-37.0] Error: Missing return statement in tail position of function align  // [bug008.diderot:34.3-37.0] Error: Missing return statement in tail position of function align
31  // Weirdly, if you comment out the "if (ret•ref < 0)" block, it works okay  // Weirdly, if you comment out the "if (ret•ref < 0)" block, it works okay
32    // FIXED
33  function vec2 align (vec2 vv, vec2 ref) {  function vec2 align (vec2 vv, vec2 ref) {
34    vec2 ret = vv;    vec2 ret = vv;
35    if (ret•ref < 0) {    if (ret•ref < 0) {
# Line 36  Line 37 
37    }    }
38    return ret;    return ret;
39  }  }
 */  
40    
41  strand HLIC (real sign, vec2 pos0) {  strand HLIC (real sign, vec2 pos0) {
42      vec2 lastdir = pos0;      vec2 lastdir = pos0;

Legend:
Removed from v.2181  
changed lines
  Added in v.2184

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0