{"action":"created","issue":{"url":"https://api.github.com/repos/pascalabcnet/pascalabcnet/issues/1151","repository_url":"https://api.github.com/repos/pascalabcnet/pascalabcnet","labels_url":"https://api.github.com/repos/pascalabcnet/pascalabcnet/issues/1151/labels{/name}","comments_url":"https://api.github.com/repos/pascalabcnet/pascalabcnet/issues/1151/comments","events_url":"https://api.github.com/repos/pascalabcnet/pascalabcnet/issues/1151/events","html_url":"https://github.com/pascalabcnet/pascalabcnet/issues/1151","id":356787980,"node_id":"MDU6SXNzdWUzNTY3ODc5ODA=","number":1151,"title":"Выдает лишние предупреждения без учёта краткого вычисления истинности условий","user":{"login":"MrSpecular","id":42602899,"node_id":"MDQ6VXNlcjQyNjAyODk5","avatar_url":"https://avatars2.githubusercontent.com/u/42602899?v=4","gravatar_id":"","url":"https://api.github.com/users/MrSpecular","html_url":"https://github.com/MrSpecular","followers_url":"https://api.github.com/users/MrSpecular/followers","following_url":"https://api.github.com/users/MrSpecular/following{/other_user}","gists_url":"https://api.github.com/users/MrSpecular/gists{/gist_id}","starred_url":"https://api.github.com/users/MrSpecular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrSpecular/subscriptions","organizations_url":"https://api.github.com/users/MrSpecular/orgs","repos_url":"https://api.github.com/users/MrSpecular/repos","events_url":"https://api.github.com/users/MrSpecular/events{/privacy}","received_events_url":"https://api.github.com/users/MrSpecular/received_events","type":"User","site_admin":false},"labels":[{"id":211629059,"node_id":"MDU6TGFiZWwyMTE2MjkwNTk=","url":"https://api.github.com/repos/pascalabcnet/pascalabcnet/labels/IDE","name":"IDE","color":"cccccc","default":false},{"id":1045431073,"node_id":"MDU6TGFiZWwxMDQ1NDMxMDcz","url":"https://api.github.com/repos/pascalabcnet/pascalabcnet/labels/%D0%9D%D0%B5%20%D0%B2%D0%B0%D0%B6%D0%BD%D0%BE%D0%B5","name":"Не важное","color":"efafac","default":false},{"id":1045456058,"node_id":"MDU6TGFiZWwxMDQ1NDU2MDU4","url":"https://api.github.com/repos/pascalabcnet/pascalabcnet/labels/%D0%A0%D0%B5%D0%B4%D0%BA%D0%BE%20%D0%B2%D1%81%D1%82%D1%80%D0%B5%D1%87%D0%B0%D1%8E%D1%89%D0%B5%D0%B5%D1%81%D1%8F","name":"Редко встречающееся","color":"fff7a5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-04T12:31:09Z","updated_at":"2018-09-04T17:28:07Z","closed_at":null,"author_association":"NONE","body":"Следующий код выдает **4** предупреждения, **2** из которых, на мой взгляд, **не** должны присутствовать:\r\n1) В случае **or** и **and** используется **краткая проверка на выполнения условия**, точнее: _если первый аргумент для **or** равен **true**, то дальше проверка **не** идёт; если первый аргумент для **and** равен **false**, то дальше проверка не **идёт_**.\r\n2) Однако, несмотря на это, для **P1** и **P4** выдаются предупреждения.\r\n```\r\nfunction P1(): boolean := true or P1(); // Infinite recursion detected\r\nfunction P2(): boolean := false or P2();\r\nfunction P3(): boolean := true and P3();\r\nfunction P4(): boolean := false and P4(); // Infinite recursion detected\r\n\r\nbegin\r\nend.\r\n```"},"comment":{"url":"https://api.github.com/repos/pascalabcnet/pascalabcnet/issues/comments/418452102","html_url":"https://github.com/pascalabcnet/pascalabcnet/issues/1151#issuecomment-418452102","issue_url":"https://api.github.com/repos/pascalabcnet/pascalabcnet/issues/1151","id":418452102,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODQ1MjEwMg==","user":{"login":"SunSerega","id":27270190,"node_id":"MDQ6VXNlcjI3MjcwMTkw","avatar_url":"https://avatars0.githubusercontent.com/u/27270190?v=4","gravatar_id":"","url":"https://api.github.com/users/SunSerega","html_url":"https://github.com/SunSerega","followers_url":"https://api.github.com/users/SunSerega/followers","following_url":"https://api.github.com/users/SunSerega/following{/other_user}","gists_url":"https://api.github.com/users/SunSerega/gists{/gist_id}","starred_url":"https://api.github.com/users/SunSerega/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SunSerega/subscriptions","organizations_url":"https://api.github.com/users/SunSerega/orgs","repos_url":"https://api.github.com/users/SunSerega/repos","events_url":"https://api.github.com/users/SunSerega/events{/privacy}","received_events_url":"https://api.github.com/users/SunSerega/received_events","type":"User","site_admin":false},"created_at":"2018-09-04T17:28:07Z","updated_at":"2018-09-04T17:28:07Z","author_association":"NONE","body":">Но что рассматривать первым - x или y - \"короткая схема\" не постулирует\r\n\r\nНет, левый всегда первый. Это в многочисленных реализациях C++ встречается так что некоторые начинают складывать слева, а некоторые справа, в паскале такого нет, и слава богу."}}
{"actor":{"display_login":"SunSerega"}}