{"action":"created","issue":{"url":"https://api.github.com/repos/tbeu/ModelicaSpecification/issues/545","repository_url":"https://api.github.com/repos/tbeu/ModelicaSpecification","labels_url":"https://api.github.com/repos/tbeu/ModelicaSpecification/issues/545/labels{/name}","comments_url":"https://api.github.com/repos/tbeu/ModelicaSpecification/issues/545/comments","events_url":"https://api.github.com/repos/tbeu/ModelicaSpecification/issues/545/events","html_url":"https://github.com/tbeu/ModelicaSpecification/issues/545","id":372215015,"node_id":"MDU6SXNzdWUzNzIyMTUwMTU=","number":545,"title":"Number of subscripts needed","user":{"login":"modelica-trac-importer","id":22202507,"node_id":"MDQ6VXNlcjIyMjAyNTA3","avatar_url":"https://avatars1.githubusercontent.com/u/22202507?v=4","gravatar_id":"","url":"https://api.github.com/users/modelica-trac-importer","html_url":"https://github.com/modelica-trac-importer","followers_url":"https://api.github.com/users/modelica-trac-importer/followers","following_url":"https://api.github.com/users/modelica-trac-importer/following{/other_user}","gists_url":"https://api.github.com/users/modelica-trac-importer/gists{/gist_id}","starred_url":"https://api.github.com/users/modelica-trac-importer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modelica-trac-importer/subscriptions","organizations_url":"https://api.github.com/users/modelica-trac-importer/orgs","repos_url":"https://api.github.com/users/modelica-trac-importer/repos","events_url":"https://api.github.com/users/modelica-trac-importer/events{/privacy}","received_events_url":"https://api.github.com/users/modelica-trac-importer/received_events","type":"User","site_admin":false},"labels":[{"id":1097433286,"node_id":"MDU6TGFiZWwxMDk3NDMzMjg2","url":"https://api.github.com/repos/tbeu/ModelicaSpecification/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"open","locked":false,"assignee":{"login":"tbeu","id":5444067,"node_id":"MDQ6VXNlcjU0NDQwNjc=","avatar_url":"https://avatars0.githubusercontent.com/u/5444067?v=4","gravatar_id":"","url":"https://api.github.com/users/tbeu","html_url":"https://github.com/tbeu","followers_url":"https://api.github.com/users/tbeu/followers","following_url":"https://api.github.com/users/tbeu/following{/other_user}","gists_url":"https://api.github.com/users/tbeu/gists{/gist_id}","starred_url":"https://api.github.com/users/tbeu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbeu/subscriptions","organizations_url":"https://api.github.com/users/tbeu/orgs","repos_url":"https://api.github.com/users/tbeu/repos","events_url":"https://api.github.com/users/tbeu/events{/privacy}","received_events_url":"https://api.github.com/users/tbeu/received_events","type":"User","site_admin":false},"assignees":[{"login":"tbeu","id":5444067,"node_id":"MDQ6VXNlcjU0NDQwNjc=","avatar_url":"https://avatars0.githubusercontent.com/u/5444067?v=4","gravatar_id":"","url":"https://api.github.com/users/tbeu","html_url":"https://github.com/tbeu","followers_url":"https://api.github.com/users/tbeu/followers","following_url":"https://api.github.com/users/tbeu/following{/other_user}","gists_url":"https://api.github.com/users/tbeu/gists{/gist_id}","starred_url":"https://api.github.com/users/tbeu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbeu/subscriptions","organizations_url":"https://api.github.com/users/tbeu/orgs","repos_url":"https://api.github.com/users/tbeu/repos","events_url":"https://api.github.com/users/tbeu/events{/privacy}","received_events_url":"https://api.github.com/users/tbeu/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/tbeu/ModelicaSpecification/milestones/56","html_url":"https://github.com/tbeu/ModelicaSpecification/milestone/56","labels_url":"https://api.github.com/repos/tbeu/ModelicaSpecification/milestones/56/labels","id":3752890,"node_id":"MDk6TWlsZXN0b25lMzc1Mjg5MA==","number":56,"title":"Design84","description":"84th Modelica Design Meeting in Lyon, France","creator":{"login":"modelica-trac-importer","id":22202507,"node_id":"MDQ6VXNlcjIyMjAyNTA3","avatar_url":"https://avatars1.githubusercontent.com/u/22202507?v=4","gravatar_id":"","url":"https://api.github.com/users/modelica-trac-importer","html_url":"https://github.com/modelica-trac-importer","followers_url":"https://api.github.com/users/modelica-trac-importer/followers","following_url":"https://api.github.com/users/modelica-trac-importer/following{/other_user}","gists_url":"https://api.github.com/users/modelica-trac-importer/gists{/gist_id}","starred_url":"https://api.github.com/users/modelica-trac-importer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modelica-trac-importer/subscriptions","organizations_url":"https://api.github.com/users/modelica-trac-importer/orgs","repos_url":"https://api.github.com/users/modelica-trac-importer/repos","events_url":"https://api.github.com/users/modelica-trac-importer/events{/privacy}","received_events_url":"https://api.github.com/users/modelica-trac-importer/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"closed","created_at":"2018-10-19T18:43:14Z","updated_at":"2018-10-20T14:04:58Z","due_on":"2014-12-03T08:00:00Z","closed_at":"2018-10-19T18:43:14Z"},"comments":7,"created_at":"2018-10-20T14:04:28Z","updated_at":"2018-10-20T14:06:19Z","closed_at":null,"author_association":"COLLABORATOR","body":"**Reported by perost on 11 Nov 2014 09:24 UTC**\nThe last example of section 10.1, page 111, in spec 3.2rev2 says:\n```\ntype Point = Real[3];\nPoint p1[10];\nReal p2[10,3];\np2[5] = p1[2]+ p2[4]; // equivalent to p2[5,:] = p1[2,:] + p2[4,:]\nReal r[3] = p1[2];    // equivalent to r[3] = p1[2,:]\n```\nIs this really intended to be legal? I can't find anything in the spec that says that the list of subscripts should be filled out with :. 10.6.9 seems to instead say that the number of subscripts must be exactly the same as the number of dimensions, although it's a bit fuzzy since it only seems to apply to subcomponents of arrays. There is also nothing in the spec that I can see about what happens if there are more indices than dimensions.\n\nThe Modelica tools that I've tried also considers it an error if the number of indices is not exactly the same as the number of dimensions.\n\n----\n\nMigrated-From: https://trac.modelica.org/Modelica/ticket/1603"},"comment":{"url":"https://api.github.com/repos/tbeu/ModelicaSpecification/issues/comments/431584893","html_url":"https://github.com/tbeu/ModelicaSpecification/issues/545#issuecomment-431584893","issue_url":"https://api.github.com/repos/tbeu/ModelicaSpecification/issues/545","id":431584893,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTU4NDg5Mw==","user":{"login":"modelica-trac-importer","id":22202507,"node_id":"MDQ6VXNlcjIyMjAyNTA3","avatar_url":"https://avatars1.githubusercontent.com/u/22202507?v=4","gravatar_id":"","url":"https://api.github.com/users/modelica-trac-importer","html_url":"https://github.com/modelica-trac-importer","followers_url":"https://api.github.com/users/modelica-trac-importer/followers","following_url":"https://api.github.com/users/modelica-trac-importer/following{/other_user}","gists_url":"https://api.github.com/users/modelica-trac-importer/gists{/gist_id}","starred_url":"https://api.github.com/users/modelica-trac-importer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modelica-trac-importer/subscriptions","organizations_url":"https://api.github.com/users/modelica-trac-importer/orgs","repos_url":"https://api.github.com/users/modelica-trac-importer/repos","events_url":"https://api.github.com/users/modelica-trac-importer/events{/privacy}","received_events_url":"https://api.github.com/users/modelica-trac-importer/received_events","type":"User","site_admin":false},"created_at":"2018-10-20T14:06:19Z","updated_at":"2018-10-20T14:06:19Z","author_association":"COLLABORATOR","body":"**Comment by stefanv on 11 Nov 2014 16:37 UTC**\nPerhaps it is just my Maple background that makes it \"obvious\" to me that these cases should work. :-)\n\nBut consider the following. We all agree that this should (and does) work in all Modelica tools:\n\n```mo\n    Real a[2], b[2], c[2]\nequation\n    a[1] = b[1] * c[1];\n    a[2] = b[2] + c[2];\n```\n\nNow consider this case, which I think we also agree should work. The only difference is that Complex is not built in like Real is, but rather is a library-defined type with implemented operators.\n\n```mo\n    Complex a[2], b[2], c[2];\nequation\n    a[1] = b[1] * c[1];\n    a[2] = b[2] + c[2];\n```\n\nFinally, consider this:\n\n```mo\n    type RotationMatrix = Real[3,3];\n    RotationMatrix a[2], b[2], c[2]\nequation\n    a[1] = b[1] * c[1];\n    a[2] = b[2] + c[2];\n```\n\nWhy should this not work? After all, \"+\" and \"\\*\" are defined for RotationMatrix by virtue of the fact that they are defined in Modelica for any 2-dimensional array.\n\nDisallowing a![1] and insisting the user write a[1,:,:] to get the first RotationMatrix of the two stored in \"a\" seems like an unnecessary restriction (and to a user, arbitrary).\n\n"}}
{"actor":{"display_login":"modelica-trac-importer"}}