1-
2- property ideVersion : Integer
3- property ideBuild : Text
4- property currentUser : Text
5- property internalVersion : Integer
6- property _features : Object
1+ property ideVersion; internalVersion : Text
2+ property ideBuild; currentUser : Text
73property localFile : 4D:C1709 .File
84property isMain : Boolean
5+ property _features; local : Object
96
10- property local : Collection
11-
12- Class constructor ($version : Integer; $file : 4D:C1709 .File )
7+ Class constructor ($version : Text; $file : 4D:C1709 .File )
138
149 var $build : Integer
1510
1611 Super:C1705 ()
1712
18- This:C1470 .ideVersion := Num :C11 (Application version:C493 ($build ))
13+ This:C1470 .ideVersion := String :C10 (Application version:C493 ($build ))
1914 This:C1470 .ideBuild := String:C10 ($build )
2015 This:C1470 .currentUser := Current system user:C484
2116
@@ -57,16 +52,28 @@ Function unstable($feature)
5752
5853 // ====================================================================
5954 // / Storing a feature as delivered
60- Function delivered ($feature ; $version : Integer )
55+ Function delivered ($feature ; $version : Text )
6156
6257 This:C1470 ._features [This :C1470._feature($feature)]:= (This:C1470 .ideVersion >= $version)
6358
6459 // ====================================================================
65- // / Storing a feature as debug (only available in dev mode )
66- Function debug ($feature )
60+ // / Storing a feature as debug (only available in matrix database )
61+ Function matrix ($feature )
6762
6863 This:C1470 ._features [This :C1470._feature($feature)]:= (Structure file:C489= Structure file:C489 (* ))
6964
65+ // ====================================================================
66+ // / .matrix() alias
67+ Function debug ($feature )
68+
69+ This:C1470 .matrix ($feature )
70+
71+ // ====================================================================
72+ // / Storing a feature as debug (only available in dev mode)
73+ Function interpeted ($feature )
74+
75+ This:C1470 ._features [This :C1470._feature($feature)]:= (Not:C34 (Is compiled mode:C492))
76+
7077 // ====================================================================
7178 // / Storing a feature as only available in main branch
7279Function main ($feature )
@@ -79,6 +86,18 @@ Function wip($feature)
7986
8087 This:C1470 ._features [This :C1470._feature($feature)]:= (Structure file:C489= Structure file:C489 (* ))
8188
89+ // ====================================================================
90+ // Activate a feature for project mode only
91+ Function project ($feature )
92+
93+ This:C1470 ._features [This :C1470._feature($feature)]:= Bool:C1537 (Get database parameter:C643 (Is host database a project:K37:99 ))
94+
95+ // ====================================================================
96+ // Activate a feature for binary database only
97+ Function binary ($feature )
98+
99+ This:C1470 ._features [This :C1470._feature($feature)]:= Not:C34 (Bool:C1537 (Get database parameter:C643 (Is host database a project:K37:99 )))
100+
82101 // ====================================================================
83102 // / Storing an alias name for a feature
84103Function alias ($alias ; $original )
@@ -99,7 +118,7 @@ Function dev($feature; $user)
99118 // ______________________________________________________
100119 : (Value type:C1509 ($user )= Is collection:K8:32)
101120
102- This:C1470 ._features [This :C1470._feature($feature)]:= ($user.indexOf (This:C1470 .currentUser )# - 1 )
121+ This:C1470 ._features [This :C1470._feature($feature)]:= ($user.includes (This:C1470 .currentUser ))
103122
104123 // ______________________________________________________
105124 : (Value type:C1509 ($user )= Is text:K8:3)
@@ -193,7 +212,7 @@ Function loadLocal()
193212 // ______________________________________________________
194213 : ($key= "version")
195214
196- $enabled := (This:C1470 .ideVersion >= Num :C11 ($o .enabled [$key ]))
215+ $enabled := (This:C1470 .ideVersion >= String :C10 ($o .enabled [$key ]))
197216
198217 // ______________________________________________________
199218 : ($key= "type")
0 commit comments