{"action":"created","issue":{"url":"https://api.github.com/repos/onryldz/x-superobject/issues/83","labels_url":"https://api.github.com/repos/onryldz/x-superobject/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/onryldz/x-superobject/issues/83/comments","events_url":"https://api.github.com/repos/onryldz/x-superobject/issues/83/events","html_url":"https://github.com/onryldz/x-superobject/issues/83","id":127081725,"number":83,"title":"Fake TArray<TMyObject> instead of TObjectList<TMyObject>","user":{"login":"vkrapotkin","id":5908569,"avatar_url":"https://avatars.githubusercontent.com/u/5908569?v=3","gravatar_id":"","url":"https://api.github.com/users/vkrapotkin","html_url":"https://github.com/vkrapotkin","followers_url":"https://api.github.com/users/vkrapotkin/followers","following_url":"https://api.github.com/users/vkrapotkin/following{/other_user}","gists_url":"https://api.github.com/users/vkrapotkin/gists{/gist_id}","starred_url":"https://api.github.com/users/vkrapotkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkrapotkin/subscriptions","organizations_url":"https://api.github.com/users/vkrapotkin/orgs","repos_url":"https://api.github.com/users/vkrapotkin/repos","events_url":"https://api.github.com/users/vkrapotkin/events{/privacy}","received_events_url":"https://api.github.com/users/vkrapotkin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-17T08:35:41Z","updated_at":"2016-01-29T18:18:44Z","closed_at":"2016-01-29T13:59:52Z","body":"To save a TObjectList property w/o the \"garbage\" as Count, Capacity, etc...  I tryed a trick - to substitute List property by fake _List array\r\n```\r\nTMyObject=class\r\n  S:string;\r\n  B:boolean;\r\n  N:single;\r\nend;\r\nTMyList=class(TObjectList<TMyObject>)\r\nend;\r\nTMyArray=TArray<TMyObject>;\r\n\r\nTModel=class\r\npublic\r\n  [DISABLE]\r\n  List:TMyList;\r\n  [ALIAS('List')]\r\n  property _List:TMyArray read Get_List write Set_List;\r\nend;\r\n\r\nfunction TModel.Get_List:TMyArray;\r\nbegin\r\n  setLength(Result, List.Count);\r\n  for i:=0 to List.Count-1 do\r\n    result[i]:=List[i];\r\nend;\r\n\r\nprocedure TModel.Set_list(const Value:TMyArray);\r\nbegin\r\n  List.Clear;\r\n  for i:=0 to length(Value) do\r\n    list.Add(Value[i]);\r\nend;\r\n```\r\nAs a result. I successfully saved my Model object in a file. But reverse operation failed.\r\n\r\nin Set_List proc, value of Value is NIL\r\ntherefore my trick fails (((\r\n\r\ncan I do something to avoid this failure ??"},"comment":{"url":"https://api.github.com/repos/onryldz/x-superobject/issues/comments/176894569","html_url":"https://github.com/onryldz/x-superobject/issues/83#issuecomment-176894569","issue_url":"https://api.github.com/repos/onryldz/x-superobject/issues/83","id":176894569,"user":{"login":"vkrapotkin","id":5908569,"avatar_url":"https://avatars.githubusercontent.com/u/5908569?v=3","gravatar_id":"","url":"https://api.github.com/users/vkrapotkin","html_url":"https://github.com/vkrapotkin","followers_url":"https://api.github.com/users/vkrapotkin/followers","following_url":"https://api.github.com/users/vkrapotkin/following{/other_user}","gists_url":"https://api.github.com/users/vkrapotkin/gists{/gist_id}","starred_url":"https://api.github.com/users/vkrapotkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkrapotkin/subscriptions","organizations_url":"https://api.github.com/users/vkrapotkin/orgs","repos_url":"https://api.github.com/users/vkrapotkin/repos","events_url":"https://api.github.com/users/vkrapotkin/events{/privacy}","received_events_url":"https://api.github.com/users/vkrapotkin/received_events","type":"User","site_admin":false},"created_at":"2016-01-29T18:18:44Z","updated_at":"2016-01-29T18:18:44Z","body":"Unfortunately, I still have Value=NIL  in Set_List(Value)\r\nSeems nothing has been changed"}}