{"action":"created","comment":{"url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/pulls/comments/48402540","id":48402540,"diff_hunk":"@@ -31,110 +31,110 @@ A list of some common ObjectScript expressions\n | Populate a class                             | `Do ##class(package.class).Populate(count, verbose)`                              |\n | Remove all objects in process memory         | `Kill`                                                                            |\n | List all objects in process memory           | `Do $system.OBJ.ShowObjects()`                                                    |\n-| Display all properties of an object          | `Do $system.OBJ.Dump(object)`<br>`Zwrite object` (v2012.2+)                              |\n-| Determine If variable is an object reference | `If $isobject(variable) ; 1=yes, 0=no`                                              |\n-| Find classname of an object                  | `Write $classname(oref)`                                                            |\n-| Start the SQL shell                          | `Do $system.SQL.Shell()`                                                            |\n-| Test a class query                           | `Do ##class(%ResultSet).RunQuery(class, query)`                                     |\n-| Declare a variable's type for Studio Assist | `#dim object as package.class`                                                    |\n+| Display all properties of an object          | `Do $system.OBJ.Dump(object)`<br>`Zwrite object` (v2012.2+)                       |\n+| Determine If variable is an object reference | `If $isobject(variable) ; 1=yes, 0=no`                                            |\n+| Find classname of an object                  | `Write $classname(oref)`                                                          |\n+| Start the SQL shell                          | `Do $system.SQL.Shell()`                                                          |\n+| Test a class query                           | `Do ##class(%ResultSet).RunQuery(class, query)`                                   |\n+| Declare a variable's type for Studio Assist | `#dim object as package.class`                                                     |\n \n-## ObjectScript Commands \n+## ObjectScript Commands\n \n | Command                       | Description                                                                         |\n |-------------------------------|-------------------------------------------------------------------------------------|\n-| `Write`                       | Display text strings, value of variable or expression.                              |\n-| `Zwrite`                      | Display array, list string, bit string.\n-| `Set`                         | Set value of variable.                                                              |\n-| `Do`                          | Execute method, procedure, or routine.                                              |\n-| `Quit` or `Return` (v2013.1)  | Terminate method, procedure, or routine. Optionally return value to calling method. |\n-| `Continue`                    | Stop current loop iteration, and continue looping.                                  |\n-| `Halt`                        | Stop Caché process and close Terminal.                                              |\n-| `Kill`                        | Destroy variable(s).                                                                |\n-| `If {} ElseIf {} Else {}`     | Evaluate conditions and branch.                                                     |\n-| `For {}`, `While {}`, `Do {} While` | Execute block of code repeatedly.                                             |\n-| `Try {} Catch {}`, `Throw`    | Handle errors.                                                                      |\n+| `Write`                       | Display text strings, value of variable or expression                               |\n+| `Zwrite`                      | Display array, list string, bit string                                              |\n+| `Set`                         | Set value of variable                                                               |\n+| `Do`                          | Execute method, procedure, or routine                                               |\n+| `Quit` or `Return` (v2013.1)  | Terminate method, procedure, or routine. Optionally return value to calling method  |\n+| `Continue`                    | Stop current loop iteration, and continue looping                                   |\n+| `Halt`                        | Stop Caché process and close Terminal                                               |\n+| `Kill`                        | Destroy variable(s)                                                                 |\n+| `If {} ElseIf {} Else {}`     | Evaluate conditions and branch                                                      |\n+| `For {}`, `While {}`, `Do {} While` | Execute block of code repeatedly                                              |\n+| `Try {} Catch {}`, `Throw`    | Handle errors                                                                       |\n \n ## ObjectScript Date/Time Functions and Special Variables\n \n-| Action                                           | Code                                                        | \n-|--------------------------------------------------|-------------------------------------------------------------| \n-| Date conversion (external → internal)            | `Set variable = $zdh(\"mm/dd/yyyy\")`                         | \n-| Date conversion (internal → external)            | `Set variable = $zd(internalDate, format)`                  | \n-| Time conversion (external → internal)            | `Set variable = $zth(\"hh:mm:ss\")`                           | \n-| Time conversion (internal → external)            | `Set variable = $zt(internalTime, format)`                  | \n-| Display current internal date/time string        | `Write $horolog`                                            | \n-| Display UTC date/time string                     | `Write $ztimestamp`                                         | \n+| Action                                           | Code                                                        |\n+|--------------------------------------------------|-------------------------------------------------------------|\n+| Date conversion (external → internal)            | `Set variable = $zdh(\"mm/dd/yyyy\")`                         |\n+| Date conversion (internal → external)            | `Set variable = $zd(internalDate, format)`                  |\n+| Time conversion (external → internal)            | `Set variable = $zth(\"hh:mm:ss\")`                           |\n+| Time conversion (internal → external)            | `Set variable = $zt(internalTime, format)`                  |\n+| Display current internal date/time string        | `Write $horolog`                                            |\n+| Display UTC date/time string                     | `Write $ztimestamp`                                         |\n \n ## ObjectScript Branching Functions\n \n-| Action                                           | Code                                                        | \n-|--------------------------------------------------|-------------------------------------------------------------| \n-| Display result for value of expression           | `Write $case(expression, value1:result1, value2:result2, …, :resultN)`                         | \n-| Display result for first true condition          | `Write $select(condition1:result1, condition2:result2, …, 1:resultN)`                  | \n+| Action                                           | Code                                                                   |\n+|--------------------------------------------------|------------------------------------------------------------------------|\n+| Display result for value of expression           | `Write $case(expression, value1:result1, value2:result2, …, :resultN)` |\n+| Display result for first true condition          | `Write $select(condition1:result1, condition2:result2, …, 1:resultN)`  |\n \n ## ObjectScript String Functions\n \n-| Action                                           | Code                                                        | \n-|--------------------------------------------------|-------------------------------------------------------------| \n-| Display substring extracted from string\t                   | `Write $extract(string, start, end)`              | \n-| Display right-justified string within width characters     | `Write $justify(string, width)`                   |\n-| Display length of string                                   | `Write $length(string)`                           |\n-| Display number of delimited pieces in string               | `Write $length(string, delimiter)`                | \n-| Display piece from delimited string                        | `Write $piece(string, delimiter, pieceNumber)`    |\n-| Set piece into delimited string\t                           | `Set $piece(string, delimiter, pieceNumber) = piece` |\n-| Display string after replacing substring                   | `Write $replace(string, subString, replaceString)`|\n-| Display reversed string                                    | `Write\t$reverse(string)`                          |","path":"COSQuickRef.md","position":95,"original_position":95,"commit_id":"4a8d5dce4385f46735a3e3f4267f515900fbf5f9","original_commit_id":"4a8d5dce4385f46735a3e3f4267f515900fbf5f9","user":{"login":"tsafin","id":4956130,"avatar_url":"https://avatars.githubusercontent.com/u/4956130?v=3","gravatar_id":"","url":"https://api.github.com/users/tsafin","html_url":"https://github.com/tsafin","followers_url":"https://api.github.com/users/tsafin/followers","following_url":"https://api.github.com/users/tsafin/following{/other_user}","gists_url":"https://api.github.com/users/tsafin/gists{/gist_id}","starred_url":"https://api.github.com/users/tsafin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsafin/subscriptions","organizations_url":"https://api.github.com/users/tsafin/orgs","repos_url":"https://api.github.com/users/tsafin/repos","events_url":"https://api.github.com/users/tsafin/events{/privacy}","received_events_url":"https://api.github.com/users/tsafin/received_events","type":"User","site_admin":false},"body":"This is important, thanks! Otherwise newbies will be much surprised to see it's not compiling well even after simple copy/paste. It should still be valid after copy-paste operation.","created_at":"2015-12-24T08:29:32Z","updated_at":"2015-12-24T08:29:32Z","html_url":"https://github.com/intersystems-ru/cos-guidelines/pull/22#discussion_r48402540","pull_request_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/intersystems-ru/cos-guidelines/pulls/comments/48402540"},"html":{"href":"https://github.com/intersystems-ru/cos-guidelines/pull/22#discussion_r48402540"},"pull_request":{"href":"https://api.github.com/repos/intersystems-ru/cos-guidelines/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/pulls/22","id":54534543,"html_url":"https://github.com/intersystems-ru/cos-guidelines/pull/22","diff_url":"https://github.com/intersystems-ru/cos-guidelines/pull/22.diff","patch_url":"https://github.com/intersystems-ru/cos-guidelines/pull/22.patch","issue_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/issues/22","number":22,"state":"open","locked":false,"title":"Some RAW formatting fixes","user":{"login":"eduard93","id":5127457,"avatar_url":"https://avatars.githubusercontent.com/u/5127457?v=3","gravatar_id":"","url":"https://api.github.com/users/eduard93","html_url":"https://github.com/eduard93","followers_url":"https://api.github.com/users/eduard93/followers","following_url":"https://api.github.com/users/eduard93/following{/other_user}","gists_url":"https://api.github.com/users/eduard93/gists{/gist_id}","starred_url":"https://api.github.com/users/eduard93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eduard93/subscriptions","organizations_url":"https://api.github.com/users/eduard93/orgs","repos_url":"https://api.github.com/users/eduard93/repos","events_url":"https://api.github.com/users/eduard93/events{/privacy}","received_events_url":"https://api.github.com/users/eduard93/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-24T08:04:33Z","updated_at":"2015-12-24T08:29:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5dacc2b6c3d631d27967b886565dbcd774844ad2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/pulls/22/commits","review_comments_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/pulls/22/comments","review_comment_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/pulls/comments{/number}","comments_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/issues/22/comments","statuses_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/statuses/4a8d5dce4385f46735a3e3f4267f515900fbf5f9","head":{"label":"intersystems-ru:formatting","ref":"formatting","sha":"4a8d5dce4385f46735a3e3f4267f515900fbf5f9","user":{"login":"intersystems-ru","id":2911705,"avatar_url":"https://avatars.githubusercontent.com/u/2911705?v=3","gravatar_id":"","url":"https://api.github.com/users/intersystems-ru","html_url":"https://github.com/intersystems-ru","followers_url":"https://api.github.com/users/intersystems-ru/followers","following_url":"https://api.github.com/users/intersystems-ru/following{/other_user}","gists_url":"https://api.github.com/users/intersystems-ru/gists{/gist_id}","starred_url":"https://api.github.com/users/intersystems-ru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intersystems-ru/subscriptions","organizations_url":"https://api.github.com/users/intersystems-ru/orgs","repos_url":"https://api.github.com/users/intersystems-ru/repos","events_url":"https://api.github.com/users/intersystems-ru/events{/privacy}","received_events_url":"https://api.github.com/users/intersystems-ru/received_events","type":"Organization","site_admin":false},"repo":{"id":46782420,"name":"cos-guidelines","full_name":"intersystems-ru/cos-guidelines","owner":{"login":"intersystems-ru","id":2911705,"avatar_url":"https://avatars.githubusercontent.com/u/2911705?v=3","gravatar_id":"","url":"https://api.github.com/users/intersystems-ru","html_url":"https://github.com/intersystems-ru","followers_url":"https://api.github.com/users/intersystems-ru/followers","following_url":"https://api.github.com/users/intersystems-ru/following{/other_user}","gists_url":"https://api.github.com/users/intersystems-ru/gists{/gist_id}","starred_url":"https://api.github.com/users/intersystems-ru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intersystems-ru/subscriptions","organizations_url":"https://api.github.com/users/intersystems-ru/orgs","repos_url":"https://api.github.com/users/intersystems-ru/repos","events_url":"https://api.github.com/users/intersystems-ru/events{/privacy}","received_events_url":"https://api.github.com/users/intersystems-ru/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/intersystems-ru/cos-guidelines","description":"COS contibutors guidelines","fork":false,"url":"https://api.github.com/repos/intersystems-ru/cos-guidelines","forks_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/forks","keys_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/keys{/key_id}","collaborators_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/teams","hooks_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/hooks","issue_events_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/issues/events{/number}","events_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/events","assignees_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/assignees{/user}","branches_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/branches{/branch}","tags_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/tags","blobs_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/git/refs{/sha}","trees_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/git/trees{/sha}","statuses_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/statuses/{sha}","languages_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/languages","stargazers_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/stargazers","contributors_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/contributors","subscribers_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/subscribers","subscription_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/subscription","commits_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/commits{/sha}","git_commits_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/git/commits{/sha}","comments_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/comments{/number}","issue_comment_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/issues/comments{/number}","contents_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/contents/{+path}","compare_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/compare/{base}...{head}","merges_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/merges","archive_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/downloads","issues_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/issues{/number}","pulls_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/pulls{/number}","milestones_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/milestones{/number}","notifications_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/labels{/name}","releases_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/releases{/id}","created_at":"2015-11-24T09:53:32Z","updated_at":"2015-12-23T21:25:35Z","pushed_at":"2015-12-24T08:14:44Z","git_url":"git://github.com/intersystems-ru/cos-guidelines.git","ssh_url":"git@github.com:intersystems-ru/cos-guidelines.git","clone_url":"https://github.com/intersystems-ru/cos-guidelines.git","svn_url":"https://github.com/intersystems-ru/cos-guidelines","homepage":null,"size":29,"stargazers_count":3,"watchers_count":3,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":8,"forks":2,"open_issues":8,"watchers":3,"default_branch":"master"}},"base":{"label":"intersystems-ru:master","ref":"master","sha":"d3faf4ffe235c1e3a6d5d9f29065cfa5c0c76bd1","user":{"login":"intersystems-ru","id":2911705,"avatar_url":"https://avatars.githubusercontent.com/u/2911705?v=3","gravatar_id":"","url":"https://api.github.com/users/intersystems-ru","html_url":"https://github.com/intersystems-ru","followers_url":"https://api.github.com/users/intersystems-ru/followers","following_url":"https://api.github.com/users/intersystems-ru/following{/other_user}","gists_url":"https://api.github.com/users/intersystems-ru/gists{/gist_id}","starred_url":"https://api.github.com/users/intersystems-ru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intersystems-ru/subscriptions","organizations_url":"https://api.github.com/users/intersystems-ru/orgs","repos_url":"https://api.github.com/users/intersystems-ru/repos","events_url":"https://api.github.com/users/intersystems-ru/events{/privacy}","received_events_url":"https://api.github.com/users/intersystems-ru/received_events","type":"Organization","site_admin":false},"repo":{"id":46782420,"name":"cos-guidelines","full_name":"intersystems-ru/cos-guidelines","owner":{"login":"intersystems-ru","id":2911705,"avatar_url":"https://avatars.githubusercontent.com/u/2911705?v=3","gravatar_id":"","url":"https://api.github.com/users/intersystems-ru","html_url":"https://github.com/intersystems-ru","followers_url":"https://api.github.com/users/intersystems-ru/followers","following_url":"https://api.github.com/users/intersystems-ru/following{/other_user}","gists_url":"https://api.github.com/users/intersystems-ru/gists{/gist_id}","starred_url":"https://api.github.com/users/intersystems-ru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intersystems-ru/subscriptions","organizations_url":"https://api.github.com/users/intersystems-ru/orgs","repos_url":"https://api.github.com/users/intersystems-ru/repos","events_url":"https://api.github.com/users/intersystems-ru/events{/privacy}","received_events_url":"https://api.github.com/users/intersystems-ru/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/intersystems-ru/cos-guidelines","description":"COS contibutors guidelines","fork":false,"url":"https://api.github.com/repos/intersystems-ru/cos-guidelines","forks_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/forks","keys_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/keys{/key_id}","collaborators_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/teams","hooks_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/hooks","issue_events_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/issues/events{/number}","events_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/events","assignees_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/assignees{/user}","branches_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/branches{/branch}","tags_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/tags","blobs_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/git/refs{/sha}","trees_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/git/trees{/sha}","statuses_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/statuses/{sha}","languages_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/languages","stargazers_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/stargazers","contributors_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/contributors","subscribers_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/subscribers","subscription_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/subscription","commits_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/commits{/sha}","git_commits_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/git/commits{/sha}","comments_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/comments{/number}","issue_comment_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/issues/comments{/number}","contents_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/contents/{+path}","compare_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/compare/{base}...{head}","merges_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/merges","archive_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/downloads","issues_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/issues{/number}","pulls_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/pulls{/number}","milestones_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/milestones{/number}","notifications_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/labels{/name}","releases_url":"https://api.github.com/repos/intersystems-ru/cos-guidelines/releases{/id}","created_at":"2015-11-24T09:53:32Z","updated_at":"2015-12-23T21:25:35Z","pushed_at":"2015-12-24T08:14:44Z","git_url":"git://github.com/intersystems-ru/cos-guidelines.git","ssh_url":"git@github.com:intersystems-ru/cos-guidelines.git","clone_url":"https://github.com/intersystems-ru/cos-guidelines.git","svn_url":"https://github.com/intersystems-ru/cos-guidelines","homepage":null,"size":29,"stargazers_count":3,"watchers_count":3,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":8,"forks":2,"open_issues":8,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/intersystems-ru/cos-guidelines/pulls/22"},"html":{"href":"https://github.com/intersystems-ru/cos-guidelines/pull/22"},"issue":{"href":"https://api.github.com/repos/intersystems-ru/cos-guidelines/issues/22"},"comments":{"href":"https://api.github.com/repos/intersystems-ru/cos-guidelines/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/intersystems-ru/cos-guidelines/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/intersystems-ru/cos-guidelines/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/intersystems-ru/cos-guidelines/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/intersystems-ru/cos-guidelines/statuses/4a8d5dce4385f46735a3e3f4267f515900fbf5f9"}}}}