{"action":"created","issue":{"url":"https://api.github.com/repos/tbeu/ModelicaSpecification/issues/250","repository_url":"https://api.github.com/repos/tbeu/ModelicaSpecification","labels_url":"https://api.github.com/repos/tbeu/ModelicaSpecification/issues/250/labels{/name}","comments_url":"https://api.github.com/repos/tbeu/ModelicaSpecification/issues/250/comments","events_url":"https://api.github.com/repos/tbeu/ModelicaSpecification/issues/250/events","html_url":"https://github.com/tbeu/ModelicaSpecification/issues/250","id":372169357,"node_id":"MDU6SXNzdWUzNzIxNjkzNTc=","number":250,"title":"Anonymous Block instantiation for operators with state","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":1097450383,"node_id":"MDU6TGFiZWwxMDk3NDUwMzgz","url":"https://api.github.com/repos/tbeu/ModelicaSpecification/labels/discussion","name":"discussion","color":"cccccc","default":false}],"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/6","html_url":"https://github.com/tbeu/ModelicaSpecification/milestone/6","labels_url":"https://api.github.com/repos/tbeu/ModelicaSpecification/milestones/6/labels","id":3752832,"node_id":"MDk6TWlsZXN0b25lMzc1MjgzMg==","number":6,"title":"ModelicaSpec3.4","description":"","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":4,"closed_issues":25,"state":"open","created_at":"2018-10-19T18:35:40Z","updated_at":"2018-10-20T03:56:57Z","due_on":null,"closed_at":null},"comments":17,"created_at":"2018-10-20T03:56:57Z","updated_at":"2018-10-20T04:00:01Z","closed_at":null,"author_association":"COLLABORATOR","body":"**Reported by choeger on 21 May 2012 10:56 UTC**\nIt seems to me that in the discussion about stateful operators I failed to fully explain the concept. I'd hereby like to start the (hopefully rational) discussion about the general idea.\n\n## Motivation\n\nWhen discussing the spatialDistribution we (the language group) formulated the operator in Modelica syntax assuming some semantics extensions. One of those extensions was the general idea to allow the application (or calling) of blocks. This has two reasons:\n\n* Blocks, in contrast to functions, have internal state\n* Although stateful operators can be used as blocks, this seems inconvenient\n\n## General idea\n\nWhen a block-type is used as a function, we can generally apply the concept of record constructors to it:\n\n```mo\nblock X\n  input Real x;\n  output Real y;\n  equation\n  y = 2*x;\nend X;\n\nReal y;\n\nequation\nX(1) = y\n```\n\ncould be transformed:\n\n```mo\nblock X\n  input Real x;\n  output Real y;\n  equation\n  y = 2*x;\nend X;\n\nReal y;\nX _X_1(x = 1);\n\nequation\n_X_1.x = y\n```\n\n(by chosing a fresh name _X_1) \n\nThere are obviously several constraints here:\n\n1. The block should better not have connectors, since it cannot be connected (because it has no name)\n1. All inputs need to be defined\n1. _Every_ application needs to give a distinct instance\n\nI'd really like to see some discussion about this, especially I am interested, if there are more operators that could be implemented as blocks.\n\n----\n\nMigrated-From: https://trac.modelica.org/Modelica/ticket/743"},"comment":{"url":"https://api.github.com/repos/tbeu/ModelicaSpecification/issues/comments/431546260","html_url":"https://github.com/tbeu/ModelicaSpecification/issues/250#issuecomment-431546260","issue_url":"https://api.github.com/repos/tbeu/ModelicaSpecification/issues/250","id":431546260,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTU0NjI2MA==","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-20T04:00:01Z","updated_at":"2018-10-20T04:00:01Z","author_association":"COLLABORATOR","body":"**Changelog removed by hansolsson on 30 Mar 2016 11:15 UTC**"}}
{"actor":{"display_login":"modelica-trac-importer"}}