Skip to content

Commit d35422d

Browse files
Update commentedExample.srlx
1 parent 3c8497c commit d35422d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sample Open Source Implementations/head/commentedExample.srlx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* THIS IS HOW RESULT OF SERIALX REAL LIFE IMPLEMENTATION MIGHT LOOK LIKE */
2+
13
name = "app";
24

35
dependencies =
@@ -107,4 +109,4 @@ $bullshit; //Now we can access variable "bullshit"
107109
$name; //"name" is still "app" in this scope!
108110

109111
arr = {1, 2, 3, 4, 5}; //This is scope with only values! So lets call it... array I guess!
110-
superArr = {$arr, $arr, $arr, $arr::new /*creates clone of arr*/, {1, 2, 3, 4, 5}}; //Yes... this is completely normal and possible in SerialX but keep in mind that first, second and third element will refere to same instance in this case!
112+
superArr = {$arr, $arr, $arr, $arr::new /*creates clone of arr*/, {1, 2, 3, 4, 5}}; //Yes... this is completely normal and possible in SerialX but keep in mind that first, second and third element will refere to same instance in this case!

0 commit comments

Comments
 (0)