[fpc-pascal] will be work macro with name of the unit?

2015-07-14 Thread ulrich
Hi, I have this unit, but when I compile it, I get this error: Illegal unit name XXX_Parser. The unit is saved under dfm_rrparser.pas. Second question: Why not displayed $INFO directive in the message window (I have enabled -vi switch in command line)? {$IFDEF FPC} {$MACRO ON} {$IFNDEF

Re: [fpc-pascal] question with interfaces, hooks

2015-07-14 Thread Sven Barth
Am 15.07.2015 06:07 schrieb "David Emerson" : [snip] > constructor t_fancy_class.create; > begin > inherited; > f_hook := t_foo_base.create; > end; > > destructor t_fancy_class.destroy; > begin > t_foo_base(f_hook).free; > inherited; > end; [snip] Not related to your proble

[fpc-pascal] question with interfaces, hooks

2015-07-14 Thread David Emerson
Hi list! I'm just starting in with interfaces, and am happy to see there is something similar to multiple inheritence available. But it seems to be limited in a way I will show below, so I am wondering if there is something I am missing. Example code says it best... program test_interfaces;

[fpc-pascal] Release of Lazarus 1.4.2

2015-07-14 Thread Mattias Gaertner
The Lazarus team is glad to announce the release of Lazarus 1.4.2. This release was built with FPC 2.6.4, same as the previous release Lazarus 1.4.0. Here is the list of fixes for Lazarus 1.4.2: http://wiki.freepascal.org/Lazarus_1.4_fixes_branch#Fixes_for_1.4.2_.28Merged.29 Here is the list of