Skip to content

Commit 5b36cb2

Browse files
committed
Array samples for the future
1 parent 487e8b7 commit 5b36cb2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

MDX2JSON/MDX2JSON.inc.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
#if $$$comClassDefined("%Library.Array")
1414
#define NewDynObj ##class(%Object).%New()
1515
#define NewDynDTList ##class(%Array).%New()
16+
#;define NewDynDTArray $$$NewDynDTList
1617
#define NewDynObjList $$$NewDynDTList
18+
#;define NewDynObjArray $$$NewDynDTList
1719
#define Insert(%obj,%element) do %obj.$push(%element)
1820
#define DynObjToJSON(%obj) w %obj.$toJSON()
1921
#define ListToJSON(%obj) $$$DynObjToJSON(%obj)
@@ -22,7 +24,9 @@
2224
#else
2325
#define NewDynObj ##class(%ZEN.proxyObject).%New()
2426
#define NewDynDTList ##class(%ListOfDataTypes).%New()
27+
#;define NewDynDTArray ##class(%ArrayOfDataTypes).%New()
2528
#define NewDynObjList ##class(%ListOfObjects).%New()
29+
#;define NewDynObjArray ##class(%ArrayOfObjects).%New()
2630
#define Insert(%obj,%element) do %obj.Insert(%element)
2731
#define DynObjToJSON(%obj) do %obj.%ToJSON()
2832
#define ListToJSON(%obj) do ##class(%ZEN.Auxiliary.jsonProvider).%ObjectToJSON(%obj)

0 commit comments

Comments
 (0)