Re: [Lazarus] Should TObject or TComponent have a Comment property?
On 11 July 2013 23:07, Benito van der Zander ben...@benibela.de wrote: Annotations like in Java would be nice... On 07/11/2013 10:22 PM, vfclists . wrote: Should TObject or TComponent have a Comment property? I think they should. One for the design itself and one for describing the usage at design or runtime. Smalltalk has it. Consider it a version of the Hint property but for the developer -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing listLazarus@lists.lazarus.freepascal.orghttp://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus This attitude which exists in the Pascal community needs to end. I say Pascal not FreePascal because when I examine a lot of free Delphi libraries I see the same thing. Lots and lots of code and not a comment in sight. It makes stuff needlessly difficult. The simple fact is documentation is never going to happen because no one has time to create it with separate tools, not even the people writing the code themselves. Coding time is the best time for documentation because that is when the intent of the code is clear and fresh in the developers mind, and incurs minimal additional cost. After all it takes barely a minute or two to describe a function, and the same parsing tools compiling the code can pull out the comments and create documentation stubs if there is a need to flesh them out further, eg with examples etc Even a lot of the funded open source libraries don't have the resources to create proper documentation. If you take Delphi for instance, since Turbo Pascal, Delphi 7 etc the quality of documentation has gone down and these are companies that are well funded. Instead of doing the simple thing a purist attitude has been adopted which never does anyone any good. It is time developers learn to treat other developers as consumers not people who are supposed to RTFC or RTFM. Developers are people who are supposed to put parts together just by examining the function parameters and the function descriptions rather than wade through loads of procedure definitions and sample code full of similar sounding and confusing names. Enough digression - if considered carefully a comment about the purpose of an object belongs in the object definition itself. Why should interrogation about an object's purpose be handled by a whole subsystem of code which has precisely nothing to do with the object, ie the operating system, a help displaying program, a filename which is the help document, as well as a search string which is the object's name? Multiply that by the variety of help displaying programs for each operating system, then by the number of operating systems available then you can see how ridiculous the whole concept is. Just bureaucracy piled on bureaucracy and attachment to ill thought out convention and tradition. There is never a direct link between an object and the help display programs available on the operating system. There is a totally insane disconnect here. The Smalltalk guys got it right. There can be an options to strip the comments out in the final deliverable just like the debugging information. -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Should TObject or TComponent have a Comment property?
On 12 July 2013 01:20, leledumbo leledumbo_c...@yahoo.co.id wrote: Annotations like in Java would be nice... No IMHO, that would complicate reading the code (more cluttered) as you can see in the newer Delphi versions (called attributes instead of annotations though). This is what folding editors exist for. The developer can fold them out of view when he doesn't need to read them This facility already exists in the Lazarus editor. Any way I thinking of simple one liners, not whole paragraphs. -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] [fpc-pascal] Should TObject or TComponent have a Comment property?
On Thu, 11 Jul 2013, vfclists . wrote: Should TObject or TComponent have a Comment property? I think they should. One for the design itself and one for describing the usage at design or runtime. No. It takes memory and needs management. Putting this in a basic class such as TComponent is not an option. Your suggestion to 'not store it in the final executable' is not even remotely possible. You can put a comment in front of the object or any of its properties, and the lazarus IDE will display this comment for you. It does not take memory, and performs the same function. The only reason the smalltalk people didn't take that approach, I suppose, is because they don't have an intelligent IDE. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Should TObject or TComponent have a Comment property?
as you can see in the newer Delphi versions (called attributes instead of annotations though). Well, then they need to be added for Delphi compatiblity :o On 07/12/2013 02:20 AM, leledumbo wrote: Annotations like in Java would be nice... No IMHO, that would complicate reading the code (more cluttered) as you can see in the newer Delphi versions (called attributes instead of annotations though). -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Should-TObject-or-TComponent-have-a-Comment-property-tp4032315p4032318.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Should TObject or TComponent have a Comment property?
On Fri, 12 Jul 2013, Benito van der Zander wrote: as you can see in the newer Delphi versions (called attributes instead of annotations though). Well, then they need to be added for Delphi compatiblity :o They have been added. It's just not yet in trunk. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Accents in IDE and my apps
On 7/12/2013 00:05, Éderson Cássio wrote: Hello, guys. I've just found that the duplicated accents problem in GTK2 only occurs when I configure my system language to Brazilian Portuguese. The problem happens with any keyboard layout, just like the Brazilian layout and even with the US International. Any ideas? Thanks Éderson Cássio - Brazil other than thoughts about your thread hijacking attempt? nope... no ideas at all... perhaps you meant to post this another thread specific to your keyboard problem topic? perhaps you meant to start a new thread? ;) ;) ;) -- NOTE: No off-list assistance is given without prior approval. Please keep mailing list traffic on the list unless private contact is specifically requested and granted. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] PDF in a Form
Good Day! I'm new to Lazarus and would like to know how I can display a PDF in a Form ... Thank you! The information contained in this e-mail is privileged and confidential information intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution, copy or taking action in reliance upon this email is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and then delete this e-mail in its entirety. Este correo electronico es confidencial y/o puede contener informacion privilegiada. Si usted no es su destinatario o no es alguna persona autorizada por este para recibir sus correos electronicos, NO debera usted utilizar, copiar, revelar, o tomar ninguna accion basada en este correo electronico o cualquier otra informacion incluida en el, favor de notificar al remitente de inmediato mediante el reenvio de este correo electronico y borrar a continuacion totalmente este correo electronico y sus anexos -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] PDF in a Form
On 12-7-2013 4:42, Edgar García wrote: Good Day! I'm new to Lazarus and would like to know how I can display a PDF in a Form ... Thank you! snip useless disclaimer Have a look here: http://forum.lazarus.freepascal.org/index.php/topic,20221 Regards, Reinier -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] External SigFPE
On 11.07.2013 16:03, Marco van de Voort wrote: On Tue, Jul 09, 2013 at 03:33:09PM +0200, Sven Barth wrote: exceptions that i'm not sure they point at the proper place. FPC does this by default. So if this is the problem, it is in external code (e.g. C libs/DLLs) or assembler. No, it does not as mentioned by Jonas in this bug report: http://bugs.freepascal.org/view.php?id=19368 I consider that a special case. I was talking about the general case. Without it, the ability to convert hardware FP exceptions to language excpetions makes n osense. I have searched the compiler's source. It emits FWAIT only in three cases: * Trunc * Round * Store of floats if SafeFPUExceptions is set So it's definitely not the general case. :) Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] PDF in a Form
On 12/07/13 16:13, Reinier Olislagers wrote: On 12-7-2013 4:42, Edgar García wrote: I'm new to Lazarus and would like to know how I can display a PDF in a Form ... Have a look here: http://forum.lazarus.freepascal.org/index.php/topic,20221 Also for a simpler example and more up-to date version of the bindings mentioned in that thread: http://code.google.com/p/firepos/source/browse/#svn%2Ftrunk%2FmuPDFlaz Malcolm -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] External SigFPE
On Fri, Jul 12, 2013 at 08:38:34PM +0200, Sven Barth wrote: No, it does not as mentioned by Jonas in this bug report: http://bugs.freepascal.org/view.php?id=19368 I consider that a special case. I was talking about the general case. Without it, the ability to convert hardware FP exceptions to language excpetions makes n osense. I have searched the compiler's source. It emits FWAIT only in three cases: * Trunc * Round * Store of floats if SafeFPUExceptions is set So it's definitely not the general case. :) Then how do we get Delphi compatibility in this case? Does it only matter for older CPUs or so? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] PDF in a Form
Reinier Olislagers wrote: On 12-7-2013 4:42, Edgar García wrote: Good Day! I'm new to Lazarus and would like to know how I can display a PDF in a Form ... Thank you! snip useless disclaimer Have a look here: http://forum.lazarus.freepascal.org/index.php/topic,20221 Can I ask a related question please. Is there an /efficient/ way of opening a PDF at a given section or page+fraction? Area of application is tagging lines of code with references to hardware manuals, some of which might be ancient bitmaps, and at present I'm resigned to pre-processing each PDF into a database of PNG images. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Accents in IDE and my apps
I wrote on this thread because I'd like to help to improve Lazarus code as I find problems with it. It was a problem for which I could produce a solution in the LCL code, but Mattias Gaertner said me the problem doesn't occur on all systems. Well, I found one situation when the problem occurs, on my system. It's not only a my system problem, it's a problem in the way the GTK2 Lazarus widgetset interacts with some systems (including mine). I say that because other GTK2 applications have a normal behavior, even Lazarus applications when my system language is English. Maybe an if would solve the problem; I just want to keep talking to someone who can guide me in the LCL changes without causing disasters. Mattias gave me an advice (thanks!), and I have found a new direction. De: waldo kitty wkitt...@windstream.net Para: lazarus@lists.lazarus.freepascal.org Enviadas: Sexta-feira, 12 de Julho de 2013 10:38 Assunto: Re: [Lazarus] Accents in IDE and my apps On 7/12/2013 00:05, Éderson Cássio wrote: Hello, guys. I've just found that the duplicated accents problem in GTK2 only occurs when I configure my system language to Brazilian Portuguese. The problem happens with any keyboard layout, just like the Brazilian layout and even with the US International. Any ideas? Thanks Éderson Cássio - Brazil other than thoughts about your thread hijacking attempt? nope... no ideas at all... perhaps you meant to post this another thread specific to your keyboard problem topic? perhaps you meant to start a new thread? ;) ;) ;) -- NOTE: No off-list assistance is given without prior approval. Please keep mailing list traffic on the list unless private contact is specifically requested and granted. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus-- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Accents in IDE and my apps
On 7/12/2013 18:36, Éderson Cássio wrote: I wrote on this thread because I'd like to help to improve Lazarus code as I find problems with it. i understand that but your addition has nothing to do with comment properties in TObject or TComponent :/ the only reason i saw your portion was because i have not marked this thread as ignore or all caught up... many others will not see your posts because of this... -- NOTE: No off-list assistance is given without prior approval. Please keep mailing list traffic on the list unless private contact is specifically requested and granted. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Accents in IDE and my apps
Em 12-07-2013 22:31, waldo kitty escreveu: On 7/12/2013 18:36, Éderson Cássio wrote: I wrote on this thread because I'd like to help to improve Lazarus code as I find problems with it. i understand that but your addition has nothing to do with comment properties in TObject or TComponent :/ the only reason i saw your portion was because i have not marked this thread as ignore or all caught up... many others will not see your posts because of this... I am new to this list, the only way I know to use it is sending a message to lazarus@lists.lazarus.freepascal.org. How do I know what thread the message is going to, who is reading, who is not reading...? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Accents in IDE and my apps
On Fri, 12 Jul 2013 15:36:26 -0700 (PDT) Éderson Cássio ederson_cas...@yahoo.com.br wrote: I wrote on this thread because I'd like to help to improve Lazarus code as I find problems with it. Waldo meant: Use the 'Reply' button of your mailer, when you want to reply to someone's mail. Otherwise use the 'New' button. The reason is that the 'Reply' button copies the hidden message ID. It does not matter if you change the subject. The mail is associated with the old mail thread Should TObject or TComponent have a Comment property. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Accents in IDE and my apps
On Fri, 12 Jul 2013 15:36:26 -0700 (PDT) Éderson Cássio ederson_cas...@yahoo.com.br wrote: [...] It was a problem for which I could produce a solution in the LCL code, but Mattias Gaertner said me the problem doesn't occur on all systems. Well, I found one situation when the problem occurs, on my system. It's not only a my system problem, it's a problem in the way the GTK2 Lazarus widgetset interacts with some systems (including mine). I say that because other GTK2 applications have a normal behavior, even Lazarus applications when my system language is English. Maybe an if would solve the problem; I just want to keep talking to someone who can guide me in the LCL changes without causing disasters. Mattias gave me an advice (thanks!), and I have found a new direction. It is possible to add the changes via an IFDEF. For example: {$IfDef EnableGtk2AccentKeyMod2} // new solution ... {$Else} // old solution ... {$EndIf} Then you can ask people to test this by adding a -dEnableGtk2AccentKeyMod2 to their IDE options. Can you create a patch for this? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus