Re: [fpc-pascal] HTML browser for help under Lazarus

2008-07-17 Thread Mattias Gaertner
On Fri, 18 Jul 2008 00:05:34 +0100
David W Noon <[EMAIL PROTECTED]> wrote:

> Whenever I try to browse the help under Lazarus, the browser used is
> always Konqueror, even when I am using GNOME or Xfce as my desktop.
> How can I configure Lazarus to use the desktop's default browser or
> explicitly to use Evolution?

1. This is a mailing list about fpc, not lazarus
2. Main menu / Help / Configure Help


Mattias
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] HTML browser for help under Lazarus

2008-07-17 Thread David W Noon
Whenever I try to browse the help under Lazarus, the browser used is
always Konqueror, even when I am using GNOME or Xfce as my desktop. How
can I configure Lazarus to use the desktop's default browser or
explicitly to use Evolution?

Regards

Dave [RLU#314465]
==
[EMAIL PROTECTED] (David W Noon)
==

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Printing of Pointer Type

2008-07-17 Thread Vinzent Höfler

Mattias Gaertner wrote:

On Thu, 17 Jul 2008 10:45:22 +0200
"Vinzent Höfler" <[EMAIL PROTECTED]> wrote:


leledumbo <[EMAIL PROTECTED]>

Jonas Maebe-2 wrote:

Because there are easy ways around it (as you mention) and the
work to implement and maintain this would probably outweigh the
usefulness.


Yes, it's easy but uncomfortable and needs more typing.

Well, sure, but printing pointer values in most cases is a pure
debugging aid and nothing really useful.


Well. Since the biggest time of programming is spent on debugging I
guess, there is more need for a PtrToStr than for FloatToStr.


My mistake. As I spend most of my time designing the things first, so 
that debugging (especially at such a level) is reduced to a minimum, I 
might not have noticed yet that printing pointer values actually adds 
value to a delivered application.


Honestly, in the rare cases where I really need to do such things, the 
amount of typing work to add the typecast is negligible.



Vinzent.

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Printing of Pointer Type

2008-07-17 Thread Johann Glaser
Hi!

Am Donnerstag, den 17.07.2008, 21:52 +0200 schrieb Mattias Gaertner:
> On Thu, 17 Jul 2008 10:45:22 +0200
> "Vinzent Höfler" <[EMAIL PROTECTED]> wrote:
> 
> > leledumbo <[EMAIL PROTECTED]>
> > > 
> > > Jonas Maebe-2 wrote:
> > > > 
> > > > Because there are easy ways around it (as you mention) and the
> > > > work to implement and maintain this would probably outweigh the
> > > > usefulness.
> > > > 
> > > Yes, it's easy but uncomfortable and needs more typing.
> > 
> > Well, sure, but printing pointer values in most cases is a pure
> > debugging aid and nothing really useful.
> 
> Well. Since the biggest time of programming is spent on debugging I
> guess, there is more need for a PtrToStr than for FloatToStr.

I suggest to extend Write and WriteLn, that for Pointer typed parameters
those are printed in hex, e.g.

Var Edit : TEdit;
Begin
  Edit := TEdit.Create;
  WriteLn('Edit = ',Pointer(Edit));
End

then prints to the screen

  Edit = $B0283958

Would be very handy for debugging, similar like C++'s 
  cout << "Edit = " << (void*)Edit << endl;
(okok, streams are ugly syntax at least, but the overloaded operator for
untyped (void) pointers comes in handy instead of FreePascal's
IntToHex(PtrUInt(Edit),8)

Bye
  Hansi


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Printing of Pointer Type

2008-07-17 Thread Mattias Gaertner
On Thu, 17 Jul 2008 10:45:22 +0200
"Vinzent Höfler" <[EMAIL PROTECTED]> wrote:

> leledumbo <[EMAIL PROTECTED]>
> > 
> > Jonas Maebe-2 wrote:
> > > 
> > > Because there are easy ways around it (as you mention) and the
> > > work to implement and maintain this would probably outweigh the
> > > usefulness.
> > > 
> > Yes, it's easy but uncomfortable and needs more typing.
> 
> Well, sure, but printing pointer values in most cases is a pure
> debugging aid and nothing really useful.

Well. Since the biggest time of programming is spent on debugging I
guess, there is more need for a PtrToStr than for FloatToStr.

lcl users can simply use dbgs().

Mattias
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] {$R file} support on non-Windows targets

2008-07-17 Thread Graeme Geldenhuys
On Thu, Jul 17, 2008 at 2:18 PM, Florian Klaempfl
<[EMAIL PROTECTED]> wrote:
>
> Just in case, it is mirrored at http://svn2.freepascal.org/svn/fpgui


Thanks Florian!  :)

As for the website, I think I must mirror it on SourceForge as well.


Regards,
 - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] {$R file} support on non-Windows targets

2008-07-17 Thread Florian Klaempfl

Graeme Geldenhuys schrieb:

On Tue, Jul 15, 2008 at 2:23 AM, Luiz Americo Pereira Camara >

I still can not access the website or the news server


Sorry Luiz and Paul for the inconvenience...

Our new building is plagued with issues, plus the electritian we have
really sucks!!!  He can't seem to get things done in one go, so he
seems to work in the evenings when we close (17:00), and does little
bits at a time. :-(  And according to our time zone differences
(looking at your emails), that's your guys day time or something.  :-(

Hopefully our electricity issues will be resolved by the end of the
week. But as I mentioned before, fpGUI code is available on
SourceForge, so is not affected by our office outages.

To get the latest code:
  svn co https://fpgui.svn.sourceforge.net/svnroot/fpgui/trunk fpgui


Just in case, it is mirrored at http://svn2.freepascal.org/svn/fpgui
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Printing of Pointer Type

2008-07-17 Thread Peter Vreman
>> Because there are easy ways around it (as you mention) and the work to
>> implement and maintain this would probably outweigh the usefulness.
>>
> Yes, it's easy but uncomfortable and needs more typing.

You can use hexstr() to convert the pointer to a hexadeciaml number:

var p: pointer;
begin
  p:[EMAIL PROTECTED];
  writeln(hexstr(p));
end.


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Printing of Pointer Type

2008-07-17 Thread Vinzent Höfler
leledumbo <[EMAIL PROTECTED]>
> 
> Jonas Maebe-2 wrote:
> > 
> > Because there are easy ways around it (as you mention) and the work to  
> > implement and maintain this would probably outweigh the usefulness.
> > 
> Yes, it's easy but uncomfortable and needs more typing.

Well, sure, but printing pointer values in most cases is a pure debugging aid 
and nothing really useful.


Vinzent.
-- 
Pt! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Printing of Pointer Type

2008-07-17 Thread leledumbo


Jonas Maebe-2 wrote:
> 
> Because there are easy ways around it (as you mention) and the work to  
> implement and maintain this would probably outweigh the usefulness.
> 
Yes, it's easy but uncomfortable and needs more typing.
-- 
View this message in context: 
http://www.nabble.com/Printing-of-Pointer-Type-tp18501912p18503748.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Printing of Pointer Type

2008-07-17 Thread Jonas Maebe


On 17 Jul 2008, at 07:38, leledumbo wrote:

Currently, the only way to print Pointer is to use SysUtils.Format  
or by

typecasting it to PtrUInt first. Why not let it possible to print it
directly? Any good reason for not allowing users to do it?


Because there are easy ways around it (as you mention) and the work to  
implement and maintain this would probably outweigh the usefulness.



Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal