621:
300:
186:
124:
66:
25:
491:
The language has private and public variables and globals. Global has a different meaning in this language than in most; such variables are global across routines, processes, and sessions. Thus, editing a global variable is making permanent and immediate changes to a system-universal database (which
492:
survives reboots, etc.). The scope of a private variable is the local function, the scope of a public variable is the entire process. Variables, private and public, may be single elements or complete multi-dimensional arrays.
468:. Since Caché is at its core a MUMPS implementation, it can run ANSI MUMPS routines with no change. To appeal as a commercial product, Caché implements support for
499:
standard. See that article for details on how data is represented and the different ways a programmer can think about the data during development.
210:
of the topic and provide significant coverage of it beyond a mere trivial mention. If notability cannot be shown, the article is likely to be
368:
262:
686:
681:
340:
234:
662:
606:
310:
539:
Class User.Helloworld { ClassMethod HelloWorld() { // Write to console Write "Hello World" Quit } }
347:
241:
38:
354:
248:
76:
394:
281:
167:
105:
52:
336:
230:
149:
584:
531:
508:
325:
134:
207:
655:
469:
563:
203:
87:
44:
361:
255:
219:
485:
648:
636:
321:
145:
141:
83:
585:"Quit Command | ObjectScript Tutorial | Caché & Ensemble 2018.1.4 & 2018.1.5"
543:
Then in Caché Terminal (assuming you wrote the User.Helloworld Class to the SAMPLE namespace):
607:
https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls?KEY=PAGE_objectscript
450:
628:
488:-like brace syntax, procedure-scoped variables, and relaxed whitespace syntax limitations.
465:
196:
8:
520:
Then in Caché Terminal (assuming you wrote the hello routine to the SAMPLE namespace):
215:
211:
421:
317:
620:
516:
hello // hello world routine write "hello world" end quit // end
632:
426:
675:
477:
473:
454:
495:
The great majority of Caché's feature-set is inherited from the ANSI
601:
484:
access to M's built-in database, procedure and control blocks using
299:
152:. Statements consisting only of original research should be removed.
202:
Please help to demonstrate the notability of the topic by citing
496:
462:
438:
557:
458:
481:
530:
75:
may contain excessive or inappropriate references to
547:
SAMPLE> DO ##class(User.Helloworld).HelloWorld()
507:
673:
457:. The language is a functional superset of the
656:
502:
326:introducing citations to additional sources
53:Learn how and when to remove these messages
663:
649:
395:Learn how and when to remove this message
282:Learn how and when to remove this message
168:Learn how and when to remove this message
106:Learn how and when to remove this message
316:Relevant discussion may be found on the
674:
86:by removing references to unreliable
615:
293:
179:
117:
90:where they are used inappropriately.
59:
18:
13:
14:
698:
602:http://www.intersystems.com/cache
595:
34:This article has multiple issues.
687:Programming language topic stubs
682:Persistent programming languages
619:
309:relies largely or entirely on a
298:
184:
122:
64:
23:
42:or discuss these issues on the
577:
1:
570:
635:. You can help Knowledge by
560:, an implementation of MUMPS
197:general notability guideline
7:
551:
470:object-oriented programming
148:the claims made and adding
10:
703:
614:
564:Profile Scripting Language
503:Caché programming examples
204:reliable secondary sources
193:The topic of this article
437:
432:
420:
412:
195:may not meet Knowledge's
545:
537:
534:program as a ClassMethod
522:
514:
566:, an extension to MUMPS
631:-related article is a
77:self-published sources
524:SAMPLE> DO ^hello
451:Caché database system
629:programming-language
511:program as a routine
466:programming language
337:"Caché ObjectScript"
322:improve this article
231:"Caché ObjectScript"
16:Programming language
474:macro preprocessing
413:First appeared
409:
480:for ANSI-standard
447:Caché ObjectScript
408:Caché ObjectScript
407:
199:
133:possibly contains
644:
643:
449:is a part of the
444:
443:
405:
404:
397:
387:
386:
372:
292:
291:
284:
266:
194:
178:
177:
170:
135:original research
116:
115:
108:
57:
694:
665:
658:
651:
623:
616:
589:
588:
581:
410:
406:
400:
393:
382:
379:
373:
371:
330:
302:
294:
287:
280:
276:
273:
267:
265:
224:
188:
187:
180:
173:
166:
162:
159:
153:
150:inline citations
126:
125:
118:
111:
104:
100:
97:
91:
68:
67:
60:
49:
27:
26:
19:
702:
701:
697:
696:
695:
693:
692:
691:
672:
671:
670:
669:
612:
598:
593:
592:
583:
582:
578:
573:
554:
549:
548:
541:
540:
536:
526:
525:
518:
517:
513:
505:
401:
390:
389:
388:
383:
377:
374:
331:
329:
315:
303:
288:
277:
271:
268:
225:
223:
201:
189:
185:
174:
163:
157:
154:
139:
127:
123:
112:
101:
95:
92:
81:
69:
65:
28:
24:
17:
12:
11:
5:
700:
690:
689:
684:
668:
667:
660:
653:
645:
642:
641:
624:
610:
609:
604:
597:
596:External links
594:
591:
590:
575:
574:
572:
569:
568:
567:
561:
553:
550:
546:
538:
535:
529:
523:
515:
512:
506:
504:
501:
442:
441:
435:
434:
430:
429:
427:Cross-platform
424:
418:
417:
414:
403:
402:
385:
384:
320:. Please help
306:
304:
297:
290:
289:
192:
190:
183:
176:
175:
130:
128:
121:
114:
113:
72:
70:
63:
58:
32:
31:
29:
22:
15:
9:
6:
4:
3:
2:
699:
688:
685:
683:
680:
679:
677:
666:
661:
659:
654:
652:
647:
646:
640:
638:
634:
630:
625:
622:
618:
617:
613:
608:
605:
603:
600:
599:
586:
580:
576:
565:
562:
559:
556:
555:
544:
533:
528:
521:
510:
500:
498:
493:
489:
487:
483:
479:
475:
471:
467:
464:
460:
456:
452:
448:
440:
436:
433:Influenced by
431:
428:
425:
423:
419:
415:
411:
399:
396:
381:
370:
367:
363:
360:
356:
353:
349:
346:
342:
339: –
338:
334:
333:Find sources:
327:
323:
319:
313:
312:
311:single source
307:This article
305:
301:
296:
295:
286:
283:
275:
264:
261:
257:
254:
250:
247:
243:
240:
236:
233: –
232:
228:
227:Find sources:
221:
217:
213:
209:
205:
198:
191:
182:
181:
172:
169:
161:
151:
147:
143:
137:
136:
131:This article
129:
120:
119:
110:
107:
99:
89:
85:
79:
78:
73:This article
71:
62:
61:
56:
54:
47:
46:
41:
40:
35:
30:
21:
20:
637:expanding it
626:
611:
579:
542:
527:
519:
494:
490:
478:embedded SQL
455:InterSystems
446:
445:
391:
375:
365:
358:
351:
344:
332:
308:
278:
272:October 2011
269:
259:
252:
245:
238:
226:
164:
158:October 2011
155:
132:
102:
96:October 2011
93:
82:Please help
74:
50:
43:
37:
36:Please help
33:
532:Hello world
509:Hello world
208:independent
676:Categories
571:References
476:language,
461:-standard
378:April 2024
348:newspapers
242:newspapers
216:redirected
142:improve it
84:improve it
39:improve it
318:talk page
206:that are
146:verifying
45:talk page
552:See also
453:sold by
362:scholar
256:scholar
220:deleted
140:Please
88:sources
364:
357:
350:
343:
335:
258:
251:
244:
237:
229:
212:merged
627:This
497:MUMPS
463:MUMPS
439:MUMPS
369:JSTOR
355:books
263:JSTOR
249:books
218:, or
633:stub
558:GT.M
472:, a
459:ANSI
416:1997
341:news
235:news
482:SQL
324:by
144:by
678::
422:OS
214:,
48:.
664:e
657:t
650:v
639:.
587:.
486:C
398:)
392:(
380:)
376:(
366:·
359:·
352:·
345:·
328:.
314:.
285:)
279:(
274:)
270:(
260:·
253:·
246:·
239:·
222:.
200:.
171:)
165:(
160:)
156:(
138:.
109:)
103:(
98:)
94:(
80:.
55:)
51:(
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.