Re: [fpc-pascal] a proposal about "with" syntax

2013-03-18 Thread Paul Ishenin

18.03.13, 11:16, Xiangrong Fang пишет:

OK, I see. However I feel "=>" a very "un-pascal" thing, remind me of
PHP.  :-)   I guess "as" would also complicate the parser?


I did not suggest to use '=>' I wrote:

> Where '=>' is some token which can't be used in expressions.

Which means replace '=>' in my example with some token (like ':' char or 
'alias' word or anything else).


And since 'as' can be used in expressions (with List as TStringList do) 
we should not use it.


Best regards,
Paul Ishenin
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] a proposal about "with" syntax

2013-03-18 Thread Xiangrong Fang
Alternatively, how about just use SPACE to separate the token? i.e.:

with SomeObject o1, SomeOtherObject o2 do

Because you need a COMMA for 2 or more expressions in with, and SPACE is
not valid in token?


2013/3/18 Sven Barth 

> Am 18.03.2013 04:17 schrieb "Xiangrong Fang" :
>
> >
> > OK, I see. However I feel "=>" a very "un-pascal" thing, remind me of
> PHP.  :-)   I guess "as" would also complicate the parser?
>
> As already written by others: "as" is one of the worst tokens you can
> choose for this, as it is perfectly legal to do a typecast in an expression
> (which includes the expression for with).
>
> Regards,
> Sven
>
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Linked list constant

2013-03-18 Thread Martin Schreiber
Hi,
I need to build linked list constants, something like
"
type
 pbty = ^bty;
 
 aty = record
  b: pbty;
 end;
 paty = ^aty;
 
 bty = record
  a: paty;
 end;
 
const
 b0: bty = (a: @a0); //Error: Identifier not found "a0"
 a0: aty = (b: @b0); 
"
Is it possible to make a forward declaration for a0?

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


Re: [fpc-pascal] a proposal about "with" syntax

2013-03-18 Thread Marco van de Voort
In our previous episode, Xiangrong Fang said:
> Alternatively, how about just use SPACE to separate the token? i.e.:
> 
> with SomeObject o1, SomeOtherObject o2 do

That's perfectly fine for C. But this isn't C.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] a proposal about "with" syntax

2013-03-18 Thread Xiangrong Fang
2013/3/18 Marco van de Voort 

> In our previous episode, Xiangrong Fang said:
> > Alternatively, how about just use SPACE to separate the token? i.e.:
> >
> > with SomeObject o1, SomeOtherObject o2 do
>
> That's perfectly fine for C. But this isn't C.
>

What's wrong here? In pascal, we also see space used in similar way:

property Item[Index: Integer]: Integer read GetItem write SetItem; default;

i.e. there is NO ; or anything before the "read" keyword, but you do need a
; before "default".  Anyway, this maybe related to how the parser is
implemented, or just a decision by the language designer, but I don't
really see why this has to do with C vs. Pascal??
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] [OT] fpcup+FreeBSD/PC-BSD: getting linux compat binutils/libs for cross compiling

2013-03-18 Thread Graeme Geldenhuys
On 2013-03-17 08:59, Reinier Olislagers wrote:

> what Linux is FreeBSD trying to emulate - RHEL 6?


Fedora 10 as far as I can see.

I've installed the emulators/linux_base-f10/ and x11/linux-xorg-libs/
(as recommended in FreeBSD Handbook) without problems, and can run
32-bit Linux apps with no problem.

I don't know if 64-bit Linux apps are supported though.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

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


Re: [fpc-pascal] [OT] fpcup+FreeBSD/PC-BSD: getting linux compat binutils/libs for cross compiling

2013-03-18 Thread Graeme Geldenhuys
On 2013-03-17 08:59, Reinier Olislagers wrote:
> Tried installing
> /usr/ports/emulators/linux_dist-gentoo-stage3
> which failed: got an error saying it was broken.

Did you do a ports update before you tried to install it? Always update
ports first, and read the UPDATING file for any possible nasty surprises
(normally not many).


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

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


Re: [fpc-pascal] FreeBSD failure compiling fpdoc 2.7.1

2013-03-18 Thread Graeme Geldenhuys
On 2013-03-15 21:22, Marco van de Voort wrote:
> 
> Try adding RELEASE=1
> 

It still fails. Do you Marco, or anybody else, know where the actual
code is in fpmake or Makefiles that says "copy all *.ppu, *,o and *.a
files to INSTALL_PREFIX"?

I don't really understand Makefile syntax that well (never used them in
any of my projects), and a quick search through the FPC files didn't
reveal anything obvious to me. But I would like to debug this problem on
my system, and get it to work. The released FPC versions are correct,
and contain the lib*.a files, but no matter what I try, those files are
not copied during my FPC 2.7.1 build & install process.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

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


Re: [fpc-pascal] FreeBSD failure compiling fpdoc 2.7.1

2013-03-18 Thread Graeme Geldenhuys
On 2013-03-15 10:46, Graeme Geldenhuys wrote:
> 
> In seems that the 'gmake install' doesn't install the lib*.a files that FPC
> generates, so my apps fail to link.


Just as a test. I checked out the 'fixes_2_6' branch, and used my same
build script as I did before. It successfully built and installed FPC
2.6.3 _with_ the lib*.a files in the INSTALL_PREFIX directory tree.



Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

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


Re: [fpc-pascal] a proposal about "with" syntax

2013-03-18 Thread Marco van de Voort
In our previous episode, Xiangrong Fang said:
> > In our previous episode, Xiangrong Fang said:
> > > Alternatively, how about just use SPACE to separate the token? i.e.:
> > >
> > > with SomeObject o1, SomeOtherObject o2 do
> >
> > That's perfectly fine for C. But this isn't C.
> 
> What's wrong here? In pascal, we also see space used in similar way:

Never between type and variable/alias name and never in the order
type[space]variable
 
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] a proposal about "with" syntax

2013-03-18 Thread Xiangrong Fang
2013/3/18 Marco van de Voort 

> In our previous episode, Xiangrong Fang said:
> > > In our previous episode, Xiangrong Fang said:
> > > > Alternatively, how about just use SPACE to separate the token? i.e.:
> > > >
> > > > with SomeObject o1, SomeOtherObject o2 do
> > >
> > > That's perfectly fine for C. But this isn't C.
> >
> > What's wrong here? In pascal, we also see space used in similar way:
>
> Never between type and variable/alias name and never in the order
> type[space]variable
>

This is not the case, as the thing before space is NOT a type but a
variable.   In my feeling things un-pascal is extensive use of "weird"
symbols... :-)

I cannot recall if there is already a notion of "alias" in free pascal, if
not then we just introduce this idea within the scope of "with" expression.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] a proposal about "with" syntax

2013-03-18 Thread Mattias Gaertner
On Mon, 18 Mar 2013 15:36:13 +0800
Xiangrong Fang  wrote:

> Alternatively, how about just use SPACE to separate the token? i.e.:
> 
> with SomeObject o1, SomeOtherObject o2 do

I think this is a bad idea.
One of the strengths of Pascal is its verbosity/redundancy which allows
unambiguous error messages and avoids many common mistakes.
For example when I forget a comma
  with A B do
the compiler points to B and writes "DO" expected but "identifier B"
found.
Using a space as separator compiles this without error.

 
> Because you need a COMMA for 2 or more expressions in with, and SPACE is
> not valid in token?

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


[fpc-pascal] Fork

2013-03-18 Thread Antonio Fortuny

  
  
Hi Folks.

Where do I use oldlinux from ?
I'd like to use the Fork function but Lazarus tells me
IpDaemon.lpr(0,0) Fatal: Can not find unit oldlinux used by IpDaemon.
whereas the source unit is in /usr/share/focsrc/linux but no .O and .ppu 
neither

Antonio
-- 
  

  
  
  
  
 Antonio
Fortuny
  Senior Software engineer
  
  220, avenue de la Liberté
  L-4602 Niederkorn
  Tel.: +352 58 00 93 - 93
  www.sitasoftware.lu

  
  
  
  

  

  

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

Re: [fpc-pascal] Fork

2013-03-18 Thread Michael Van Canneyt



On Mon, 18 Mar 2013, Antonio Fortuny wrote:


Hi Folks.

Where do I use oldlinux from ?


Don't use oldlinux.


I'd like to use the Fork function but Lazarus tells me
IpDaemon.lpr(0,0) Fatal: Can not find unit oldlinux used by IpDaemon.
whereas the source unit is in /usr/share/focsrc/linux but no .O and .ppu


Use fpfork from baseunix or unix.

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


[fpc-pascal] Re: Fork

2013-03-18 Thread leledumbo
oldlinux unit has been long deprecated. Use fpFork from BaseUnix as
replacement: http://www.freepascal.org/docs-html/rtl/baseunix/fpfork.html



--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/Fork-tp5713675p5713677.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


[fpc-pascal] Re: Linked list constant

2013-03-18 Thread leledumbo
> Is it possible to make a forward declaration for a0?

No, forward type declaration is possible (with the restriction that the type
must be based on pointer and the real declaration starts in the same type
block), but forward variable declaration is not. You won't gain much benefit
from doing the assignment at declaration than doing it at program start.



--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/Linked-list-constant-tp5713665p5713678.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


[fpc-pascal] Re: a proposal about "with" syntax

2013-03-18 Thread leledumbo
> I cannot recall if there is already a notion of "alias" in free pascal, if
not then we just introduce this idea within the scope of "with" expression. 

Let me give you one then:

procedure p; [public, alias: 'my_p'];




--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/a-proposal-about-with-syntax-tp5713601p5713679.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] a proposal about "with" syntax

2013-03-18 Thread Sven Barth
Am 18.03.2013 10:36 schrieb "Xiangrong Fang" :
>
> 2013/3/18 Marco van de Voort 
>>
>> In our previous episode, Xiangrong Fang said:
>> > > In our previous episode, Xiangrong Fang said:
>> > > > Alternatively, how about just use SPACE to separate the token?
i.e.:
>> > > >
>> > > > with SomeObject o1, SomeOtherObject o2 do
>> > >
>> > > That's perfectly fine for C. But this isn't C.
>> >
>> > What's wrong here? In pascal, we also see space used in similar way:
>>
>> Never between type and variable/alias name and never in the order
>> type[space]variable
>
>
> This is not the case, as the thing before space is NOT a type but a
variable.   In my feeling things un-pascal is extensive use of "weird"
symbols... :-)
>
> I cannot recall if there is already a notion of "alias" in free pascal,
if not then we just introduce this idea within the scope of "with"
expression.

Which is why I suggested "absolute" as this already carries the note of "a
is the same as b".

Though considering that we already have an "alias" token that would also be
an alternative...

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

Re: [fpc-pascal] Re: a proposal about "with" syntax

2013-03-18 Thread Ludo Brands
On 03/18/2013 02:30 PM, leledumbo wrote:
>> I cannot recall if there is already a notion of "alias" in free pascal, if
> not then we just introduce this idea within the scope of "with" expression. 
> 
> Let me give you one then:
> 
> procedure p; [public, alias: 'my_p'];
> 

And another one:

var
  a:integer;
  a_alias:integer absolute a;

:)

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


Re: [fpc-pascal] Fork

2013-03-18 Thread Antonio Fortuny

Le 18/03/2013 14:24, Michael Van Canneyt a écrit :



On Mon, 18 Mar 2013, Antonio Fortuny wrote:


Hi Folks.

Where do I use oldlinux from ?


Don't use oldlinux.


I'd like to use the Fork function but Lazarus tells me
IpDaemon.lpr(0,0) Fatal: Can not find unit oldlinux used by IpDaemon.
whereas the source unit is in /usr/share/focsrc/linux but no .O and .ppu


Use fpfork from baseunix or unix.

I did find in the mean time; Thanks anyway


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



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


Re: [fpc-pascal] a proposal about "with" syntax

2013-03-18 Thread Flávio Etrusco
On Mon, Mar 18, 2013 at 10:42 AM, Sven Barth
 wrote:
> Am 18.03.2013 10:36 schrieb "Xiangrong Fang" :
> (...)
>> I cannot recall if there is already a notion of "alias" in free pascal, if
>> not then we just introduce this idea within the scope of "with" expression.
>
> Which is why I suggested "absolute" as this already carries the note of "a
> is the same as b".
>
> Though considering that we already have an "alias" token that would also be
> an alternative...

Reading your comment, maybe "same" is a worth candidate ;-)

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


Re: [fpc-pascal] Re: a proposal about "with" syntax

2013-03-18 Thread Xiangrong Fang
2013/3/18 leledumbo 

> > I cannot recall if there is already a notion of "alias" in free pascal,
> if
> not then we just introduce this idea within the scope of "with" expression.
>
> Let me give you one then:
>
> procedure p; [public, alias: 'my_p'];
>

Is it related to COM or DLL stuff? Where is this kind of usage documented
in the manual?

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

[fpc-pascal] Re: a proposal about "with" syntax

2013-03-18 Thread leledumbo
> Is it related to COM or DLL stuff?

No, though might be if you want to export with your own symbol in DLL

> Where is this kind of usage documented in the manual?

http://www.freepascal.org/docs-html/ref/refsu64.html



--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/a-proposal-about-with-syntax-tp5713601p5713685.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] a proposal about "with" syntax

2013-03-18 Thread Sven Barth

Am 18.03.2013 15:24, schrieb Flávio Etrusco:

On Mon, Mar 18, 2013 at 10:42 AM, Sven Barth
 wrote:

Am 18.03.2013 10:36 schrieb "Xiangrong Fang" :
(...)

I cannot recall if there is already a notion of "alias" in free pascal, if
not then we just introduce this idea within the scope of "with" expression.

Which is why I suggested "absolute" as this already carries the note of "a
is the same as b".

Though considering that we already have an "alias" token that would also be
an alternative...

Reading your comment, maybe "same" is a worth candidate ;-)
I personally prefer to use tokens first that we already have and "same" 
is not part of them.


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


Re: [fpc-pascal] Re: Linked list constant

2013-03-18 Thread Martin Schreiber
On Monday 18 March 2013 14:27:25 leledumbo wrote:
> > Is it possible to make a forward declaration for a0?
>
> No, forward type declaration is possible (with the restriction that the
> type must be based on pointer and the real declaration starts in the same
> type block), but forward variable declaration is not. You won't gain much
> benefit from doing the assignment at declaration than doing it at program
> start.
>
Really? No gain in the beloved readability? And it seems to me a "const" 
should not be changed by code. ;-)

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


Re: [fpc-pascal] a proposal about "with" syntax

2013-03-18 Thread Jürgen Hestermann


Am 2013-03-16 07:13, schrieb Xiangrong Fang:

I would like to do this:

with MyClassInstance as mci, SomethingElse do begin
  Caption := 'A new caption';
  for i := 0 to Count - 1 do
mci[i] := UpperCase(mci[i]);
end;

That is, to add an optional "as" clause to the with statement so that access 
array element in a structure is made easier.


I fail to see how this would be helpful.
It's just more confusing.
Suddenly there are 2 (or more?) identifiers meaning the same thing.
If I want to avoid typing a long identifer name multiple times
I would simply select it and copy it to the clipboard.
If someone (I myself?) chose a long identifier name I think it was for some 
reason (readability?).
Foiling this by making the code more obscure is not a good idea IMO.
That's making the code a bit more C'ish (harder to read).
You won't cripple down all variables to one letter names A, B, C only because 
this is easier to type, won't you?
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] a proposal about "with" syntax

2013-03-18 Thread Ralf A. Quint

At 10:03 AM 3/18/2013, Jürgen Hestermann wrote:


Am 2013-03-16 07:13, schrieb Xiangrong Fang:

I would like to do this:

with MyClassInstance as mci, SomethingElse do begin
  Caption := 'A new caption';
  for i := 0 to Count - 1 do
mci[i] := UpperCase(mci[i]);
end;

That is, to add an optional "as" clause to the 
with statement so that access array element in a structure is made easier.

I fail to see how this would be helpful.
It's just more confusing.
Suddenly there are 2 (or more?) identifiers meaning the same thing.
If I want to avoid typing a long identifer name multiple times
I would simply select it and copy it to the clipboard.
If someone (I myself?) chose a long identifier 
name I think it was for some reason (readability?).

Foiling this by making the code more obscure is not a good idea IMO.
That's making the code a bit more C'ish (harder to read).
You won't cripple down all variables to one 
letter names A, B, C only because this is easier to type, won't you?


+1

I don't see either why a programming language 
needs to be changed to support the laziness of some programmers.


But in recent months (years?) it seems more and 
more folks in here don't wont' to program in 
Pascal anymore and come up all the time with "new 
and improved" features that render the advantages of Pascal useless...


Ralf 


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


Re: [fpc-pascal] a proposal about "with" syntax

2013-03-18 Thread Bart
On 3/18/13, Jürgen Hestermann  wrote:

> You won't cripple down all variables to one letter names A, B, C only
> because this is easier to type, won't you?

You would if you'ld be programming in MUMPS ;-)

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


Re: [fpc-pascal] TProcess: CommandLine deprecated

2013-03-18 Thread Eric Kom

On 18/03/2013 08:47, Noah Silva wrote:

Hi,

According to this guide:
http://lazarus-ccr.sourceforge.net/docs/fcl/process/tprocess.html

Thanks for the note.


The Executable and Parameters properties should be used instead.

You may also find this interesting:
http://wiki.freepascal.org/Executing_External_Programs#TProcess

Thank you,
   Noah Silva

2013/3/18 Eric Kom >


Good day,

During the compile time, a received at warning message Symbol
"CommandLine" is deprecated.

They is another method to replace CommandLine from the TProcess?
so that I can avoid the warning message.

-- 
Kind Regards


Eric Kom

System Administrator & Programmer - Metropolitan College
 _
/ You are scrupulously honest, frank, and \
| straightforward. Therefore you have few |
\ friends./
 -
   \
\
.--.
   |o_o |
   |:_/ |
  //   \ \
 (| Kom | )
/'\_   _/`\
\___)=(___/

2 Hennie Van Till, White River, 1240
Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334
eric...@kom.za.net  |
eric...@metropolitancollege.co.za

www.kom.za.net  | www.kom.za.org
 | www.erickom.co.za 

Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5

___
fpc-pascal maillist  - fpc-pascal@lists.freepascal.org

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




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



--
Kind Regards

Eric Kom

System Administrator & Programmer - Metropolitan College
 _
/ You are scrupulously honest, frank, and \
| straightforward. Therefore you have few |
\ friends./
 -
   \
\
.--.
   |o_o |
   |:_/ |
  //   \ \
 (| Kom | )
/'\_   _/`\
\___)=(___/

2 Hennie Van Till, White River, 1240
Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334
eric...@kom.za.net | eric...@metropolitancollege.co.za
www.kom.za.net | www.kom.za.org | www.erickom.co.za

Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5

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

Re: [fpc-pascal] [OT] Pascal compiler for embedded platforms

2013-03-18 Thread Rainer Stratmann
I had my own (simple) board Jeppe gave me an upload program written by his own 
which works perfect.
May be you can ask him. He is the specialist for that stuff.


Am Sunday 17 March 2013 10:08:19 schrieb Justin Smyth:
> Rainer what board were using using for this below ?
>
> -Original Message-
> From: Rainer Stratmann
> Sent: Saturday, March 16, 2013 7:15 PM
> To: FPC-Pascal users discussions
> Subject: Re: [fpc-pascal] [OT] Pascal compiler for embedded platforms
>
> May be you can use STM32F...
>
> That works for me with FPC.
> http://j-software.dk/stm32f103.php
>
> Am Saturday 16 March 2013 03:13:52 schrieb Justin Smyth:
> > I'm using a LPC 1343 Microcontroller unit from waveshare, basically its a
> > Cortex M3.
> >
> > the link for the board is -
> > http://www.wvshare.com/product/Open1343-Package-A.htm
> >
> > I've now got STLInk V2 debugging kit , i want to debug this board in
> > lazarus
> >
> >
> > KInd Regards
> >
> > Justin
> >
> > -Original Message-
> > From: Rainer Stratmann
> > Sent: Saturday, March 16, 2013 6:28 AM
> > To: FPC-Pascal users discussions
> > Subject: Re: [fpc-pascal] [OT] Pascal compiler for embedded platforms
> >
> > What kind of controller?
> > Atmel AVR 8 bit?
> > ARM 32 bit?
> >
> > For AVR it works good.
> >
> > Am Friday 15 March 2013 13:29:48 schrieb Justin Smyth:
> > > I've tried to use mikropascal and not had any luck , i emailed them my
> > > board i was going to use with the product and they said they didnt
> > > support it.
> >
> > may be in the future...
> >
> > > I've now got a ST Link V2 for the debugging , if someone could give me
> > > an
> > > idea how to set it up  , i would be great full.
> > >
> > > Kind Regards
> > >
> > >
> > > Justin Smyth
> > >
> > > -Original Message-
> > > From: Rainer Stratmann
> > > Sent: Friday, March 15, 2013 9:30 PM
> > > To: FPC-Pascal users discussions
> > > Subject: Re: [fpc-pascal] [OT] Pascal compiler for embedded platforms
> > >
> > > Am Friday 15 March 2013 10:40:15 schrieb Roberto P.:
> > > > 2013/3/15 Rainer Stratmann 
> > > >
> > > > > For 32 bit ARM I would try to use freepascal.
> > > > > I got it work somehow.
> > > >
> > > > any tip or guide would be appreciated, then.
> > >
> > > For me that is not easy. Most of the time I get it work somehow and
> > > shortly
> > > after I did not realize why ... :-)
> > > I have suggestions to make something easier, but I am always facing
> > > excuses
> > > why it is good as it is, so I less take part of this type of
> > > discussions which are exhausting for me.
> > >
> > > > > > I'm just a little afraid of the potentially limited maturity of
> > > > > > these.
> > > > >
> > > > > What do you mean exactly with that?
> > > >
> > > > I mean that (maybe) both FPC and mikroePascal are young products for
> > > > the embedded world, so that I might be facing compiler or  library
> > > > propblems during the devlopment, besides my own project problems.
> > >
> > > May be mikroe is not providing the sourcecode (I am not sure), but they
> > > have for nearly everything a solution. Ethernet, FAT, SPI, SD-Card,
> > > USB, HTTP, TCP, etc...
> > > There were problems in the past, but because they are (heavily) busy
> > > with
> > > that
> > > stuff they solve most of the important problems. And I think they are
> > > honest.
> > > ___
> > > fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> > > http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> > >
> > >
> > > ___
> > > fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> > > http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> >
> > ___
> > fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> > http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> >
> >
> > ___
> > fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> > http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
>
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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


RE: [fpc-pascal] [OT] Pascal compiler for embedded platforms

2013-03-18 Thread Justin Smyth
Does that allow debugging via Lazarus ?  

-Original Message-
From: "Rainer Stratmann" 
Sent: ‎19/‎03/‎2013 9:29 AM
To: "FPC-Pascal users discussions" 
Subject: Re: [fpc-pascal] [OT] Pascal compiler for embedded platforms

I had my own (simple) board Jeppe gave me an upload program written by his own 
which works perfect.
May be you can ask him. He is the specialist for that stuff.


Am Sunday 17 March 2013 10:08:19 schrieb Justin Smyth:
> Rainer what board were using using for this below ?
>
> -Original Message-
> From: Rainer Stratmann
> Sent: Saturday, March 16, 2013 7:15 PM
> To: FPC-Pascal users discussions
> Subject: Re: [fpc-pascal] [OT] Pascal compiler for embedded platforms
>
> May be you can use STM32F...
>
> That works for me with FPC.
> http://j-software.dk/stm32f103.php
>
> Am Saturday 16 March 2013 03:13:52 schrieb Justin Smyth:
> > I'm using a LPC 1343 Microcontroller unit from waveshare, basically its a
> > Cortex M3.
> >
> > the link for the board is -
> > http://www.wvshare.com/product/Open1343-Package-A.htm
> >
> > I've now got STLInk V2 debugging kit , i want to debug this board in
> > lazarus
> >
> >
> > KInd Regards
> >
> > Justin
> >
> > -Original Message-
> > From: Rainer Stratmann
> > Sent: Saturday, March 16, 2013 6:28 AM
> > To: FPC-Pascal users discussions
> > Subject: Re: [fpc-pascal] [OT] Pascal compiler for embedded platforms
> >
> > What kind of controller?
> > Atmel AVR 8 bit?
> > ARM 32 bit?
> >
> > For AVR it works good.
> >
> > Am Friday 15 March 2013 13:29:48 schrieb Justin Smyth:
> > > I've tried to use mikropascal and not had any luck , i emailed them my
> > > board i was going to use with the product and they said they didnt
> > > support it.
> >
> > may be in the future...
> >
> > > I've now got a ST Link V2 for the debugging , if someone could give me
> > > an
> > > idea how to set it up  , i would be great full.
> > >
> > > Kind Regards
> > >
> > >
> > > Justin Smyth
> > >
> > > -Original Message-
> > > From: Rainer Stratmann
> > > Sent: Friday, March 15, 2013 9:30 PM
> > > To: FPC-Pascal users discussions
> > > Subject: Re: [fpc-pascal] [OT] Pascal compiler for embedded platforms
> > >
> > > Am Friday 15 March 2013 10:40:15 schrieb Roberto P.:
> > > > 2013/3/15 Rainer Stratmann 
> > > >
> > > > > For 32 bit ARM I would try to use freepascal.
> > > > > I got it work somehow.
> > > >
> > > > any tip or guide would be appreciated, then.
> > >
> > > For me that is not easy. Most of the time I get it work somehow and
> > > shortly
> > > after I did not realize why ... :-)
> > > I have suggestions to make something easier, but I am always facing
> > > excuses
> > > why it is good as it is, so I less take part of this type of
> > > discussions which are exhausting for me.
> > >
> > > > > > I'm just a little afraid of the potentially limited maturity of
> > > > > > these.
> > > > >
> > > > > What do you mean exactly with that?
> > > >
> > > > I mean that (maybe) both FPC and mikroePascal are young products for
> > > > the embedded world, so that I might be facing compiler or  library
> > > > propblems during the devlopment, besides my own project problems.
> > >
> > > May be mikroe is not providing the sourcecode (I am not sure), but they
> > > have for nearly everything a solution. Ethernet, FAT, SPI, SD-Card,
> > > USB, HTTP, TCP, etc...
> > > There were problems in the past, but because they are (heavily) busy
> > > with
> > > that
> > > stuff they solve most of the important problems. And I think they are
> > > honest.
> > > ___
> > > fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> > > http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> > >
> > >
> > > ___
> > > fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> > > http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> >
> > ___
> > fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> > http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> >
> >
> > ___
> > fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> > http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
>
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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

Re: [fpc-pascal] [OT] Pascal compiler for embedded platforms

2013-03-18 Thread Rainer Stratmann
I am not sure, but I think that is not possibe.
For me I don't need debugger.

Am Tuesday 19 March 2013 00:05:39 schrieb Justin Smyth:
> Does that allow debugging via Lazarus ?
>
> -Original Message-
> From: "Rainer Stratmann" 
> Sent: ‎19/‎03/‎2013 9:29 AM
> To: "FPC-Pascal users discussions" 
> Subject: Re: [fpc-pascal] [OT] Pascal compiler for embedded platforms
>
> I had my own (simple) board Jeppe gave me an upload program written by his
> own which works perfect.
> May be you can ask him. He is the specialist for that stuff.
>
> Am Sunday 17 March 2013 10:08:19 schrieb Justin Smyth:
> > Rainer what board were using using for this below ?
> >
> > -Original Message-
> > From: Rainer Stratmann
> > Sent: Saturday, March 16, 2013 7:15 PM
> > To: FPC-Pascal users discussions
> > Subject: Re: [fpc-pascal] [OT] Pascal compiler for embedded platforms
> >
> > May be you can use STM32F...
> >
> > That works for me with FPC.
> > http://j-software.dk/stm32f103.php
> >
> > Am Saturday 16 March 2013 03:13:52 schrieb Justin Smyth:
> > > I'm using a LPC 1343 Microcontroller unit from waveshare, basically its
> > > a Cortex M3.
> > >
> > > the link for the board is -
> > > http://www.wvshare.com/product/Open1343-Package-A.htm
> > >
> > > I've now got STLInk V2 debugging kit , i want to debug this board in
> > > lazarus
> > >
> > >
> > > KInd Regards
> > >
> > > Justin
> > >
> > > -Original Message-
> > > From: Rainer Stratmann
> > > Sent: Saturday, March 16, 2013 6:28 AM
> > > To: FPC-Pascal users discussions
> > > Subject: Re: [fpc-pascal] [OT] Pascal compiler for embedded platforms
> > >
> > > What kind of controller?
> > > Atmel AVR 8 bit?
> > > ARM 32 bit?
> > >
> > > For AVR it works good.
> > >
> > > Am Friday 15 March 2013 13:29:48 schrieb Justin Smyth:
> > > > I've tried to use mikropascal and not had any luck , i emailed them
> > > > my board i was going to use with the product and they said they didnt
> > > > support it.
> > >
> > > may be in the future...
> > >
> > > > I've now got a ST Link V2 for the debugging , if someone could give
> > > > me an
> > > > idea how to set it up  , i would be great full.
> > > >
> > > > Kind Regards
> > > >
> > > >
> > > > Justin Smyth
> > > >
> > > > -Original Message-
> > > > From: Rainer Stratmann
> > > > Sent: Friday, March 15, 2013 9:30 PM
> > > > To: FPC-Pascal users discussions
> > > > Subject: Re: [fpc-pascal] [OT] Pascal compiler for embedded platforms
> > > >
> > > > Am Friday 15 March 2013 10:40:15 schrieb Roberto P.:
> > > > > 2013/3/15 Rainer Stratmann 
> > > > >
> > > > > > For 32 bit ARM I would try to use freepascal.
> > > > > > I got it work somehow.
> > > > >
> > > > > any tip or guide would be appreciated, then.
> > > >
> > > > For me that is not easy. Most of the time I get it work somehow and
> > > > shortly
> > > > after I did not realize why ... :-)
> > > > I have suggestions to make something easier, but I am always facing
> > > > excuses
> > > > why it is good as it is, so I less take part of this type of
> > > > discussions which are exhausting for me.
> > > >
> > > > > > > I'm just a little afraid of the potentially limited maturity of
> > > > > > > these.
> > > > > >
> > > > > > What do you mean exactly with that?
> > > > >
> > > > > I mean that (maybe) both FPC and mikroePascal are young products
> > > > > for the embedded world, so that I might be facing compiler or 
> > > > > library propblems during the devlopment, besides my own project
> > > > > problems.
> > > >
> > > > May be mikroe is not providing the sourcecode (I am not sure), but
> > > > they have for nearly everything a solution. Ethernet, FAT, SPI,
> > > > SD-Card, USB, HTTP, TCP, etc...
> > > > There were problems in the past, but because they are (heavily) busy
> > > > with
> > > > that
> > > > stuff they solve most of the important problems. And I think they are
> > > > honest.
> > > > ___
> > > > fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> > > > http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> > > >
> > > >
> > > > ___
> > > > fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> > > > http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> > >
> > > ___
> > > fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> > > http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> > >
> > >
> > > ___
> > > fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> > > http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> >
> > ___
> > fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> > http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> >
> >
> > ___
> > fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> > http://lists.freepascal.org/mail

Re: [fpc-pascal] [OT] Pascal compiler for embedded platforms

2013-03-18 Thread Martin Schreiber
On Tuesday 19 March 2013 00:05:39 Justin Smyth wrote:
> Does that allow debugging via Lazarus ?
>
Currently I use MSEide in order to develop a M3 based based project (Energy 
Micro Tiny Gecko). Although with gcc but FPC could be used too I assume. 
Debugging connection is a Segger J-Link provided by the EFM32-TG-STK3300 
starter kit, works very well.

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