Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 403
    • Issues 403
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #1589
Closed
Open
Created Apr 08, 2003 by Sven-Bodo Scholz@sbsOwner

nesting of set notation

Bugzilla Link 10
Created on Apr 08, 2003 10:35
Resolution FIXED
Resolved on Nov 05, 2003 16:01
Version 1.00beta
OS SunOS
Architecture Sun

Extended Description

There is a problem when nesting the set notation.
Simple example:
int main()
{
  v = [1,2,3,4];
  m = [v, v, v];
  a = [m,m];
#if 0
  a = { [i,j] -> {[k] -> a[[0,...,k]]} [j,i] };
#else
  tmp = {[k] -> a[[0,...,k]] };
  a = { [i,j] -> tmp[[j,i]] };
#endif
  return( a[[0,0]]);
}
The commented out version does not survive phase 2 of the compiler 8-(
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking