{"action":"created","issue":{"url":"https://api.github.com/repos/godotengine/godot/issues/4796","repository_url":"https://api.github.com/repos/godotengine/godot","labels_url":"https://api.github.com/repos/godotengine/godot/issues/4796/labels{/name}","comments_url":"https://api.github.com/repos/godotengine/godot/issues/4796/comments","events_url":"https://api.github.com/repos/godotengine/godot/issues/4796/events","html_url":"https://github.com/godotengine/godot/issues/4796","id":156505262,"number":4796,"title":"godot script: clone sub class (improvement)","user":{"login":"ret80","id":233268,"avatar_url":"https://avatars.githubusercontent.com/u/233268?v=3","gravatar_id":"","url":"https://api.github.com/users/ret80","html_url":"https://github.com/ret80","followers_url":"https://api.github.com/users/ret80/followers","following_url":"https://api.github.com/users/ret80/following{/other_user}","gists_url":"https://api.github.com/users/ret80/gists{/gist_id}","starred_url":"https://api.github.com/users/ret80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ret80/subscriptions","organizations_url":"https://api.github.com/users/ret80/orgs","repos_url":"https://api.github.com/users/ret80/repos","events_url":"https://api.github.com/users/ret80/events{/privacy}","received_events_url":"https://api.github.com/users/ret80/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-24T13:20:25Z","updated_at":"2016-05-24T16:10:23Z","closed_at":null,"body":"I wrote here such script:\r\nfuzzy.gd\r\n```\r\nextends Node\r\n# sub class\r\nclass FzSet:\r\n   var st\r\n   func _init(v):\r\n      st = v.st\r\n   func clone():\r\n      return FzSet.new(self)\r\n```\r\neventually I found that this does not work. should be replaced\r\n```\r\nreturn FzSet.new(self)\r\n```\r\n to\r\n```\r\nextends Node\r\n# sub class\r\nclass FzSet:\r\n   var st\r\n   func _init(v):\r\n      st = v.st\r\n   func clone():\r\n      return load(\"res:/fuzzy.gd\").FzSet.new(self)\r\n```\r\nBut it looks like that scary.\r\n\r\nPS.\r\nPerhaps there is another way, and I just do not know about it."},"comment":{"url":"https://api.github.com/repos/godotengine/godot/issues/comments/221322119","html_url":"https://github.com/godotengine/godot/issues/4796#issuecomment-221322119","issue_url":"https://api.github.com/repos/godotengine/godot/issues/4796","id":221322119,"user":{"login":"eska014","id":6996191,"avatar_url":"https://avatars.githubusercontent.com/u/6996191?v=3","gravatar_id":"","url":"https://api.github.com/users/eska014","html_url":"https://github.com/eska014","followers_url":"https://api.github.com/users/eska014/followers","following_url":"https://api.github.com/users/eska014/following{/other_user}","gists_url":"https://api.github.com/users/eska014/gists{/gist_id}","starred_url":"https://api.github.com/users/eska014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eska014/subscriptions","organizations_url":"https://api.github.com/users/eska014/orgs","repos_url":"https://api.github.com/users/eska014/repos","events_url":"https://api.github.com/users/eska014/events{/privacy}","received_events_url":"https://api.github.com/users/eska014/received_events","type":"User","site_admin":false},"created_at":"2016-05-24T16:10:23Z","updated_at":"2016-05-24T16:10:23Z","body":"`return get_script().new()`"}}
{"actor":{"display_login":"eska014"}}