Board index » delphi » Re: Interface / Implementation sections
Markus.Humm
![]() Delphi Developer |
Markus.Humm
![]() Delphi Developer |
Re: Interface / Implementation sections2007-03-23 02:00:33 AM delphi6 Chris Burrows schrieb: [snip] Quote
or so... Greetings Markus |
nafdb
![]() Delphi Developer |
2007-03-23 05:23:24 AM
Re: Interface / Implementation sections
Hi Chris
I agree with Markus on this one, symbols are just not Delphi, there should just be visibility declared as a word after the declaration/type; public, private (optional as it would be the default), etc. It might tape a few more taps of the keyboard but that is what templates were invented for :-) nafdb |
Chris Burrows
![]() Delphi Developer |
2007-03-23 07:17:23 AM
Re: Interface / Implementation sections
"Markus.Humm" <XXXX@XXXXX.COM>writes
QuoteChris Burrows schrieb: would become: a: integer; public; b: integer; readonly; c: integer; |
nafdb
![]() Delphi Developer |
2007-03-26 05:40:54 AM
Re: Interface / Implementation sectionsQuotea: integer; public; Quotea*, b-, c: integer; |
Chris Burrows
![]() Delphi Developer |
2007-03-26 08:18:18 AM
Re: Interface / Implementation sections
"nafdb" <XXXX@XXXXX.COM>writes
Quote>a: integer; public; If you like wordiness you will like Oberon / Component Pascal for other reasons. e.g. Pascal's cryptic p: ^integer; has been replaced by p: POINTER TO INTEGER; Alternatively, the latest language in the Algol / Pascal / Modula-2 / Oberon family, 'Zonnon' does use words for the visibility attributes: e.g. var {public, immutable} refCount: integer; However, they have chosen to reinstate the Modula-2 style separate definition / implementation sections. www.zonnon.ethz.ch/ |
Chris Burrows
![]() Delphi Developer |
2007-03-26 10:35:17 AM
Re: Interface / Implementation sections
"Bruce McGee" <XXXX@XXXXX.COM>writes
Quote
content for many years with separate semi-duplicated interface sections until I encountered some very practical alternatives. |
David M
![]() Delphi Developer |
2007-03-26 11:11:53 AM
Re: Interface / Implementation sections
Hi Bruce
Quote
class structure - at the end of the day I don't care that the code is duplicated in the interface and impl sections because MMX handles the synchronisation for me. I think there is a 30 day trial version and it is not a bad price either. Cheers D David Moorhouse Moorhouse Works ltd www.moorhouse.co.nz |
Bruce McGee
![]() Delphi Developer |
2007-03-26 11:52:53 AM
Re: Interface / Implementation sections
Chris Burrows writes:
QuoteI doubt it. However, have you had any hands-on experience of using a refactoring support, but I haven't used anything that the auto-generation for me. Who knows? I might really warm up to it. -- Regards, Bruce McGee Glooscap Software |
Thomas Miller
![]() Delphi Developer |
2007-03-26 10:50:39 PM
Re: Interface / Implementation sections
You are not. As many have said before, if we wanted to be programming in
C++ we wouldn't be programming in OP. I do however like the { } over begin .. end and would love to see that become a project option. Using C# begin end ({ }) or OP begin end. Bruce McGee writes: QuoteI hope I am not the only one who really likes the separate Interface Chrome Portal Project Manager CPCUG Programmers SIG Chairperson (formally Delphi) Delphi Client/Server Certified Developer BSS Accounting & Distribution Software BSS Enterprise Accounting FrameWork www.bss-software.com programmers.cpcug.org/ sourceforge.net/projects/chromeportal/ sourceforge.net/projects/uopl/ sourceforge.net/projects/dbexpressplus |
Fernando Madruga
![]() Delphi Developer |
2007-03-26 11:27:47 PM
Re: Interface / Implementation sections
Thomas Miller writes:
QuoteYou are not. As many have said before, if we wanted to be programming in directives, defines, regions... |
Q Correll
![]() Delphi Developer |
2007-03-27 05:07:21 AM
Re: Interface / Implementation sections
Thomas,
| I do however like the { } over begin .. end and would love to see | that become a project option. Using C# begin end ({ }) or OP begin | end. Oh GAWD no! <g> -- Q 03/26/2007 13:04:54 XanaNews Version 1.17.5.7 [Q's salutation mod] |
Chris Burrows
![]() Delphi Developer |
2007-03-27 08:02:11 AM
Re: Interface / Implementation sections
"Thomas Miller" <XXXX@XXXXX.COM>writes
QuoteYou are not. As many have said before, if we wanted to be programming in languages apart from OP and C++. |