Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Generic collections

  1. #11
    Free Pascal has several Pascal syntax modes: FPC, TurboPascal, Object Free Pascal, Delphi and Mac Pascal (whatever it is). Maybe something else I forgot to mention. Objective-C maybe. In Object Free Pascal mode generics are incompatible with Delphi because apparently Free Pascal developers invented their own syntax for generics; however in Delphi syntax mode Free Pascal generics syntax conforms to Delphi generics syntax (more or less). While Free Pascal might not support latest additions to generics introduced in Delphi, it should be able to compile simplier cases; so in general it should be possible to compile same source code with generics both in FreePascal and Delphi.
    Most likely, Free Pascal does not support generic constraints: this TIntfListGenericType<T: IInterfaceList> thing

    le programmeur

  2. #12
    Earlier here in PGD, there was a topic around generics http://www.pascalgamedevelopment.com...elphi-Generics and Murmandamus wrote something interesting about http://www.pascalgamedevelopment.com...ll=1#post52445 maybe in the time since the post, FPC generics are more compatible, I don't know.

  3. #13
    they are supposed to be compatible in Delphi mode ( {$mode Delphi} )

    I still vote for templates with include files though
    le programmeur

  4. #14
    maybe use whichever is faster in engine internals and leave choice on using generics to engine 'end' users?
    imo modern engine should run on many platforms out of the box and expose scripting language as main way of coding the game.
    ability to mess with the source code is a big advantage but not everyone would need or want that

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •