So what's up with Get link Facebook X Pinterest Email Other Apps - October 16, 2013 So what's up withtype TFoo = TBar;not being allowed? Get link Facebook X Pinterest Email Other Apps Comments Lars FosdalOctober 16, 2013 at 11:58 PMThe type cannot declared without class () - I think I've read why once, but can't remember who said what.ReplyDeleteRepliesReplyAsbjørn HeidOctober 17, 2013 at 12:34 AMSo no way of aliasing a generic type. I guess it may be related to the weird requirement that generic methods can't reference local functions.The more I use generics in Delphi the more I sense the gigantic hack they did to make their compiler support it.ReplyDeleteRepliesReplyLars FosdalOctober 17, 2013 at 12:37 AMYa, and why non-class functions and procedures can't use generics.ReplyDeleteRepliesReplyLars FosdalOctober 17, 2013 at 12:39 AMIt is probably related to resolving the actual types and sort which that are the same, and which that are not.ReplyDeleteRepliesReplyStefan GlienkeOctober 17, 2013 at 12:54 AMYou cannot even alias a generic type -.-ReplyDeleteRepliesReplyAdd commentLoad more... Post a Comment
The type cannot declared without class () - I think I've read why once, but can't remember who said what.
ReplyDeleteSo no way of aliasing a generic type. I guess it may be related to the weird requirement that generic methods can't reference local functions.
ReplyDeleteThe more I use generics in Delphi the more I sense the gigantic hack they did to make their compiler support it.
Ya, and why non-class functions and procedures can't use generics.
ReplyDeleteIt is probably related to resolving the actual types and sort which that are the same, and which that are not.
ReplyDeleteYou cannot even alias a generic type -.-
ReplyDelete