<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.compilers.free-pascal.general">
    <title>gmane.comp.compilers.free-pascal.general</title>
    <link>http://blog.gmane.org/gmane.comp.compilers.free-pascal.general</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27534"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27529"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27527"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27523"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27519"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27515"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27508"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27506"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27498"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27494"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27469"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27460"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27457"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27451"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27450"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27444"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27434"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27426"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27420"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27419"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27534">
    <title>fcl-web: custom URL dispatcher/mapper</title>
    <link>http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27534</link>
    <description>&lt;pre&gt;By default, fcl-web uses the following dispatching schema:
&amp;lt;host&amp;gt;/&amp;lt;module&amp;gt;/&amp;lt;action&amp;gt;
Is there anyway to customize this behavior?

--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/fcl-web-custom-URL-dispatcher-mapper-tp5709875.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal-PD4FTy7X32k2wBtHl531yWD2FQJk+8+b&amp;lt; at &amp;gt;public.gmane.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

&lt;/pre&gt;</description>
    <dc:creator>leledumbo</dc:creator>
    <dc:date>2012-05-26T14:40:08</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27529">
    <title>have anyone binded librsync to pascal yet ?</title>
    <link>http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27529</link>
    <description>&lt;pre&gt;Hello,

Is there anyone who binded librsync into Pascal/FPC ?

Thanks,

Ido
_______________________________________________
fpc-pascal maillist  -  fpc-pascal-PD4FTy7X32k2wBtHl531yWD2FQJk+8+b&amp;lt; at &amp;gt;public.gmane.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal&lt;/pre&gt;</description>
    <dc:creator>ik</dc:creator>
    <dc:date>2012-05-25T09:55:40</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27527">
    <title>Parameters to Format()</title>
    <link>http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27527</link>
    <description>&lt;pre&gt;How should I put this?


procedure TUnyokedFrontendForm.OutputWriteF(const str: widestring; 
values: array of variant; fg: TColor= clBlack; bg: TColor= clDefault);

var     scratch: widestring;

begin
   scratch := Format(str, values);


As above, I get

unyokedfrontendcode.pas(354,32) Error: Incompatible type for arg no. 2: 
Got "Open Array Of Variant", expected "Array Of Const"

I was caught by this one years ago, and at the time the Delphi 
developers I was in contact with had no easy solution.

&lt;/pre&gt;</description>
    <dc:creator>Mark Morgan Lloyd</dc:creator>
    <dc:date>2012-05-25T09:50:23</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27523">
    <title>Proposed FPC database example code: request for testing</title>
    <link>http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27523</link>
    <description>&lt;pre&gt;Hi list,

I've created a small SQL*Plus/isql/osql/sqlcmd clone, pasql.

It lets you connect to a database and run select queries as well as
queries that don't return a dataset.
It also shows how to use logging.

Perhaps it's a nice candidate for inclusion as an FPC example, but it's
only been tested/known to work on Firebird 2.5 server, MS SQL Server
2008 and Sybase ASE15.

I'd be interested in suggestions for improving the code (e.g. the ODBC
code probably needs work), bug reports with other databases (PostgreSQL,
Oracle,...)

Thanks,
Reinier


Pasql
=====
Pasql is a sample tool that lets you connect to an SQLDB supported
database and run SQL commands.

It logs your commands and can print them at the end of the session.

To run this, you need to have the relevant database client drivers/dlls
installed (e.g. in Windows, you can put them in the directory where
pasql.exe is)

Run pasql -h for help.

Concepts
========
This program demonstrates:
- handling command line parameters
- use of a general class (TSQLCo&lt;/pre&gt;</description>
    <dc:creator>Reinier Olislagers</dc:creator>
    <dc:date>2012-05-25T08:17:01</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27519">
    <title>TP 4 to FPC 2.6.0 conversion</title>
    <link>http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27519</link>
    <description>&lt;pre&gt;
My conversion of TP 4 programs into FPC 2.6.0 to obtain hi res graphics on Win2000 OS is almost complete. My program starts in a VGA type window requesting a keyboard input and then opens into a full screen graph mode window, 1023 X 720 pixels, behind the small VGA window. I must click on the full screen window to bring it on top and gain keyboard control.

What FPC commands exist to instruct my converted program to put the full screen on top when it enters graphic mode?  I use the IDE which came with 2.6.0.  I adapted Mandel.pp graphics code.

Thanks for suggestions  RwZ_______________________________________________
fpc-pascal maillist  -  fpc-pascal-PD4FTy7X32k2wBtHl531yWD2FQJk+8+b&amp;lt; at &amp;gt;public.gmane.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

&lt;/pre&gt;</description>
    <dc:creator>Robert Zimmerer</dc:creator>
    <dc:date>2012-05-23T16:59:40</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27515">
    <title>TList Notify count changed</title>
    <link>http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27515</link>
    <description>&lt;pre&gt;In TList how can i notify if Count is changed with New and Old values as
like in SetCount, SetCount procedure not virtual?
procedure SetCount(NewCount: Integer);

I am using last revision of Lazarus, FPC 2.6

Best Regards

Zaher Dirkey
_______________________________________________
fpc-pascal maillist  -  fpc-pascal-PD4FTy7X32k2wBtHl531yWD2FQJk+8+b&amp;lt; at &amp;gt;public.gmane.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal&lt;/pre&gt;</description>
    <dc:creator>Zaher Dirkey</dc:creator>
    <dc:date>2012-05-22T18:08:16</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27508">
    <title>You can probably ignore this</title>
    <link>http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27508</link>
    <description>&lt;pre&gt;It seems I have to post twice or nothing shows up to the list!

_______________________________________________
fpc-pascal maillist  -  fpc-pascal-PD4FTy7X32k2wBtHl531yWD2FQJk+8+b&amp;lt; at &amp;gt;public.gmane.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

&lt;/pre&gt;</description>
    <dc:creator>microcode-ytc+IHgoah0&lt; at &gt;public.gmane.org</dc:creator>
    <dc:date>2012-05-22T05:05:41</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27506">
    <title>Can't install FPC on mac bookair 10.7.4</title>
    <link>http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27506</link>
    <description>&lt;pre&gt;Dear

I can't install FPC compiler on mac 10.7.3

Please see attachment files

Thank you

Chovav

P.S. -http://www.lazarus.freepascal.org/index.php/topic,16125.0.html




On Sun, May 20, 2012 at 5:00 PM, &amp;lt;fpc-pascal-request-PD4FTy7X32k2wBtHl531yWD2FQJk+8+b&amp;lt; at &amp;gt;public.gmane.org&amp;gt;wrote:

_______________________________________________
fpc-pascal maillist  -  fpc-pascal-PD4FTy7X32k2wBtHl531yWD2FQJk+8+b&amp;lt; at &amp;gt;public.gmane.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal&lt;/pre&gt;</description>
    <dc:creator>Chovav Sutachy</dc:creator>
    <dc:date>2012-05-21T05:54:45</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27498">
    <title>FPMake configure script</title>
    <link>http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27498</link>
    <description>&lt;pre&gt;  

Hi, 

I've been playing with a configuration script for my project
some time now. What started as a simple compiled application, it has
changed into a instantFPC script. Today I finally refactored the
majority of the code into a set of classes very similar to how fpmake
works. 

I've attached an example config script together with the utils
unit. My plan is to add some tool classes in the future that check for
installed libraries etc. Please note that this is a very basic
implementation and I'm open for suggestions and tips. Ultimately I would
like to see this to be included in FPC trunk if everyone agrees.


Regards, Darius 
  _______________________________________________
fpc-pascal maillist  -  fpc-pascal-PD4FTy7X32k2wBtHl531yWD2FQJk+8+b&amp;lt; at &amp;gt;public.gmane.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal&lt;/pre&gt;</description>
    <dc:creator>dhkblaszyk-47ckw973qWsGTViba+RHyw&lt; at &gt;public.gmane.org</dc:creator>
    <dc:date>2012-05-20T11:22:11</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27494">
    <title>Darwin i386</title>
    <link>http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27494</link>
    <description>&lt;pre&gt;I'm having a hard time with GDB and debugging threads on a OSX 10.7.4 with
fpc/trunk

The shipped gdb worked great with the exception of threads calling methods
via synchronize (so I can debug).

I'm in the process of building GDB from download and configure set gdb to
x64 darwin.  Configure detected correctly but my gdb 7.4.1 app fails to
load with some ioctl error.  I'm assuming fpc can't compile darwin x64 yet.


I tried # gdb ./configure --target=i386-apple-darwin but I think it needs
i386 gcc compiler.

I downloaded gcc from subversion and tried to configure and it too
configures make files to x64 darwin :-(

Has anyone got the latest GDB running on darwin?  Any instructions or tips
for getting gdb 7.4 working properly?
_______________________________________________
fpc-pascal maillist  -  fpc-pascal-PD4FTy7X32k2wBtHl531yWD2FQJk+8+b&amp;lt; at &amp;gt;public.gmane.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal&lt;/pre&gt;</description>
    <dc:creator>Andrew Brunner</dc:creator>
    <dc:date>2012-05-20T00:59:38</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27469">
    <title>Extend multiple classes with same code</title>
    <link>http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27469</link>
    <description>&lt;pre&gt;Hi,

I have 2 objects inherited from the base one

T_A = class(TObject);

T_B1 = class(T_A);
T_B2 = class(T_A);
T_B3 = class(T_A);

Now if I want to extend T_B1 it is easy to inherit it to T_C1 = class
(T_B1) and add many functions to it, but.

I want the same extend T_B2  not T_B3,

1 - The first idea is adding this functions to T_A, but it is not my class
to modify it, or it is protected from my modify.
2 - Copy and paste this functions to T_B2, but in that case I need every
time to fix functions in B1 I must do it in B2, that make it so hard, and
not good programming quality.

Is there any new idea to do that, what about Helper, generics, i read about
it i felt it is not fit to my problem (or i am wrong).

Thanks in advance

Zaher Dirkey
_______________________________________________
fpc-pascal maillist  -  fpc-pascal-PD4FTy7X32k2wBtHl531yWD2FQJk+8+b&amp;lt; at &amp;gt;public.gmane.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal&lt;/pre&gt;</description>
    <dc:creator>Zaher Dirkey</dc:creator>
    <dc:date>2012-05-18T18:38:50</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27460">
    <title>FSplit is deprecated</title>
    <link>http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27460</link>
    <description>&lt;pre&gt;unixutil

another deprecated function that has not written any hint towards its
replacement right behind the 'deprecated' keyword (where it would
belong). The RTL documentation also does not contain any hints.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal-PD4FTy7X32k2wBtHl531yWD2FQJk+8+b&amp;lt; at &amp;gt;public.gmane.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

&lt;/pre&gt;</description>
    <dc:creator>Bernd</dc:creator>
    <dc:date>2012-05-17T16:49:39</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27457">
    <title>Handling with sources and exebutables with differentnames</title>
    <link>http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27457</link>
    <description>&lt;pre&gt;hello all,

I am compiling CGI modules with Freepascal in commandline mode. if I do:

fpc test.pas

the result is "test.exe". But the source name needs to be different
from the executable name. For this reason:

fpc test.pas -oindex.cgi

This command should result in index.cgi, placed on the current folder.
However, this command is ignore and I obtain "test.exe" again.

My question is: how to produce a executable, compiling from the
commandline in FPC 2.6.0, with a different name of its source?

Regards,

Luciano
_______________________________________________
fpc-pascal maillist  -  fpc-pascal-PD4FTy7X32k2wBtHl531yWD2FQJk+8+b&amp;lt; at &amp;gt;public.gmane.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

&lt;/pre&gt;</description>
    <dc:creator>luciano de souza</dc:creator>
    <dc:date>2012-05-17T12:09:08</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27451">
    <title>Strange compile error</title>
    <link>http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27451</link>
    <description>&lt;pre&gt;  

Hi, 

I have a simple application that uses glut and opencv.
However as soon as I add the opencv wrapper unit to the uses clause I
get: 

video.pp(10,1) Fatal: Syntax error, "UNIT" expected but "PROGRAM"
found 

The compiler does not recognize the main unit anymore. I have
searched the opencv.pas file but I could not find anything strange
there. Has anyone got an idea of what might be happening? 

TIA,
Darius

  _______________________________________________
fpc-pascal maillist  -  fpc-pascal-PD4FTy7X32k2wBtHl531yWD2FQJk+8+b&amp;lt; at &amp;gt;public.gmane.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal&lt;/pre&gt;</description>
    <dc:creator>dhkblaszyk-47ckw973qWsGTViba+RHyw&lt; at &gt;public.gmane.org</dc:creator>
    <dc:date>2012-05-17T08:11:30</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27450">
    <title>Unicode support</title>
    <link>http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27450</link>
    <description>&lt;pre&gt;I wanted to ask what the present state of unicode support is now.

I'm running into problems with some various strings.  Sometimes when a
string contains a unicode character postgresql won't allow the
insert/update.  Also, some MP3 tags contain UTF16, UTF16BE and I really
don't know of the best practice on how to handle multi-byte characters in
code.

I have 3 representations of the same string for all ID3 frames for my MP3
tag reader.  I have to say - this has become an issue.

Anyone want to comment on direction of FPC for Unicode... Ie I think the
string field should be able to re-map to UTF8.  Is that something that can
be done?

What can I do to support unicode in the serving of
pages/files/documents/music without having to have encoding aware code.

http://wiki.freepascal.org/FPC_Unicode_support
_______________________________________________
fpc-pascal maillist  -  fpc-pascal-PD4FTy7X32k2wBtHl531yWD2FQJk+8+b&amp;lt; at &amp;gt;public.gmane.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal&lt;/pre&gt;</description>
    <dc:creator>Andrew Brunner</dc:creator>
    <dc:date>2012-05-16T18:51:54</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27444">
    <title>Catching math exceptions in a DLL</title>
    <link>http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27444</link>
    <description>&lt;pre&gt;Hello all,

Using FPC, I'm writing a DLL that exports functions used by a given host 
process.
In order to protect the host process, it is mandatory that all 
exceptions are trapped in the exported function and in order to achieve 
that, I have the following construct in all exported functions:

function SomeFunc(SomeParam: ParamType): Boolean;
begin
   Result := False;
   try
     // do the actual work
     Result := True;
   except
     on E: TObject do
       NotifyException(E);
   end;
end;

My problem comes when I have some code that does invalid math 
operations, like division by zero for instance.
In that case, the raised exception is never caught by my except 
statement and is directly sent to the host process, making it crash badly.
Is there a way to have ALL exceptions caught, regardless of their origin?
_______________________________________________
fpc-pascal maillist  -  fpc-pascal-PD4FTy7X32k2wBtHl531yWD2FQJk+8+b&amp;lt; at &amp;gt;public.gmane.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

&lt;/pre&gt;</description>
    <dc:creator>OBones</dc:creator>
    <dc:date>2012-05-16T09:45:37</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27434">
    <title>Setting string to be UnicodeString by default</title>
    <link>http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27434</link>
    <description>&lt;pre&gt;Hello all,

Is there a way to force the string type to be an alias to UnicodeString 
instead of AnsiString as it is by default?
I tried the obvious "type string = UnicodeString" but of course it is 
not allowed as string is a reserved keyword.

Regards
_______________________________________________
fpc-pascal maillist  -  fpc-pascal-PD4FTy7X32k2wBtHl531yWD2FQJk+8+b&amp;lt; at &amp;gt;public.gmane.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

&lt;/pre&gt;</description>
    <dc:creator>Olivier Sannier</dc:creator>
    <dc:date>2012-05-15T07:59:45</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27426">
    <title>Adding USB library to FPC</title>
    <link>http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27426</link>
    <description>&lt;pre&gt;I have seen several header translations of the various libusb variants
(0.1, 1.0 &amp;amp; win32) scattered on the web and forums.  I have also noticed
several dead links, a typo or two and some missing function declaration in
some of the available pascal translations.

Would it not make sense to include a FPC package with a header translation
for say the libusb 0.1 &amp;amp; win32 libraries?  I mention these two since they
seem to be compatible at an API level, hence would be ideal for
cross-platform support.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal-PD4FTy7X32k2wBtHl531yWD2FQJk+8+b&amp;lt; at &amp;gt;public.gmane.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal&lt;/pre&gt;</description>
    <dc:creator>Christo Crause</dc:creator>
    <dc:date>2012-05-13T21:04:21</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27420">
    <title>converting c code</title>
    <link>http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27420</link>
    <description>&lt;pre&gt;I'm struggling to convert a simple for loop from C to pascal. The code is shown below (as is a trace of the loop parameter values). I'm a bit puzzled how this should look elegantly in pascal. Anyone has an idea?

Regards, Darius


unsigned nc = 4;

for (unsigned i = 0, j = nc-1; i &amp;lt; nc; j=i++)
{
cout &amp;lt;&amp;lt; "i:" &amp;lt;&amp;lt; i &amp;lt;&amp;lt; endl;
cout &amp;lt;&amp;lt; "j:" &amp;lt;&amp;lt; j &amp;lt;&amp;lt; endl;
}

loop values are:
i:0
j:3
i:1
j:0
i:2
j:1
i:3
j:2_______________________________________________
fpc-pascal maillist  -  fpc-pascal-PD4FTy7X32k2wBtHl531yWD2FQJk+8+b&amp;lt; at &amp;gt;public.gmane.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

&lt;/pre&gt;</description>
    <dc:creator>Darius Blaszyk</dc:creator>
    <dc:date>2012-05-13T13:09:15</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27419">
    <title>Parsing parameters inside an interpreter</title>
    <link>http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27419</link>
    <description>&lt;pre&gt;Hello all,

I trying to build a very small interpreter. I can type commands like:

$ add "Luciano de Souza" luchyanus-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org

Somewhere in my code, I can have something like:

procedure parse(commandline: string; var params: array of string);

In this case, the commandline has the format: "add %s %s". So I would obtain:

parse('add "Luciano de Souza" luchyanus-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org', params);

After this command, the parameter would have the following values:

params[0] := 'add';
params[1] := 'Luciano de Souza';
params[2] := 'luchyanus-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org';

My question is: there is a way to do it easily using a standard class
of Freepascal?

Luciano
_______________________________________________
fpc-pascal maillist  -  fpc-pascal-PD4FTy7X32k2wBtHl531yWD2FQJk+8+b&amp;lt; at &amp;gt;public.gmane.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

&lt;/pre&gt;</description>
    <dc:creator>luciano de souza</dc:creator>
    <dc:date>2012-05-13T10:20:52</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27414">
    <title>FPC and (minimal) telnet</title>
    <link>http://comments.gmane.org/gmane.comp.compilers.free-pascal.general/27414</link>
    <description>&lt;pre&gt;I'm using the ltelnet unit to good effect in a special-purpose terminal 
emulator which doesn't merit e.g. Synapse, although since it's not part 
of the the fcl I'm having to build it specially.

I find that if I try to use it to connect to the Hercules mainframe 
emulator it fails since the terminal type subcommand is not supported. 
If anybody else is using it (or if Ales is reading this) I'd be 
interested in any suggestions as to how best to add this facility (i.e. 
hardcoded internally, subcommands passed to a callback, etc.).

&lt;/pre&gt;</description>
    <dc:creator>Mark Morgan Lloyd</dc:creator>
    <dc:date>2012-05-12T20:55:48</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.compilers.free-pascal.general">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.compilers.free-pascal.general</link>
  </textinput>
</rdf:RDF>

