Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2011-12

Generics and Mac

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Juha Manninen

I used generics in Lazarus code base for the first time, in TreeFilter component:

  TTreeNodeList = specialize TFPGList<TTreeNode>;
and
  TBranchList = specialize TFPGObjectList<TBranch>;

I works for me on Windows and Linux, with FPC 2.4.4 and 2.6.0 RC1. Now Zeljan reported it does not compile on Mac OSX 64-bit, using FPC 2.6.0 RC1.
What can cause it? My generics usage is the most basic possible. Both TTreeNode and TBranch are simple classes.

Juha

Reply by email

Juha Manninen
to Juha Manninen

2011/12/17 Juha Manninen

Show quoted text 13 lines
I used generics in Lazarus code base for the first time, in TreeFilter component: TTreeNodeList = specialize TFPGList<TTreeNode>; and TBranchList = specialize TFPGObjectList<TBranch>; I works for me on Windows and Linux, with FPC 2.4.4 and 2.6.0 RC1. Now Zeljan reported it does not compile on Mac OSX 64-bit, using FPC 2.6.0 RC1. What can cause it? My generics usage is the most basic possible. Both TTreeNode and TBranch are simple classes.

"Fatal: Syntax error, ">" expected but "CLASS" found"

Works on 64-bit Linux.
How can OSX affect generics syntax?

Juha

Reply by email

Jonas Maebe
to Juha Manninen
Juha Manninen wrote
"Fatal: Syntax error, ">" expected but "CLASS" found" Works on 64-bit Linux. How can OSX affect generics syntax?

There are no Mac OS X-specific failures of generics tests in the testsuite (64 bit or otherwise, Intel or PowerPC). There are no bug reports about it either. This is unlikely to have anything to do with Mac OS X, and most likely related to an installation/configuration problem.

Jonas

Reply by email

Juha Manninen
to Jonas Maebe

2011/12/17 Jonas Maebe

Show quoted text 13 lines
On 17 Dec 2011, at 18:22, Juha Manninen wrote: > "Fatal: Syntax error, ">" expected but "CLASS" found" > > Works on 64-bit Linux. > How can OSX affect generics syntax? There are no Mac OS X-specific failures of generics tests in the testsuite (64 bit or otherwise, Intel or PowerPC). There are no bug reports about it either. This is unlikely to have anything to do with Mac OS X, and most likely related to an installation/configuration problem.

Thanks.
Zeljan was in a hurry but he promised to make some basic tests with generics tomorrow.
The strange thing is that everything except generics worked for him. How can a config problem affect only generics but nothing else? We will find out...

Juha

Reply by email