Hi,
I am changing the title of the topic, but it follows the discussion with
Juha Manninen and the last answer of Jonas.
In fact, I have asked some time ago, if there was a way to produce with
FPC some kind of Java compatible bytecode. I was answered that it was
not possible because of some funda
On 10/06/2009 06:31 PM, Frank Peelo wrote:
Any new concepts that were introduced, like properties, were applied
only to the new classes and objects were left in a corner, like the
embarrassing relative that you wish you could get rid of, but can't.
However, AFAIK Free Pascal supports properties
On Wed, 2009-10-07 at 07:22 +0200, Jürgen Hestermann wrote:
> Therefore, there is absolutly no difference between
>
> TFigure = record
>X : TShapeList;
>case TShapeList of
> Rectangle: (Height, Width: Real);
> Triangle: (Side1, Side2, Angle: R
> Jorge Aldo G. de F. Junior schrieb:
type ifreq = record
ifr_ifrn : record
case longint of
0 : ( ifrn_name : array[0..15] of char );
end;
ifr_ifru : record
case longint of
0 : ( ifru_addr : sockaddr
AFAIK there has to be some fixed part before the variant, e. g.
TFigure = record
name: string;
case TShapeList of
Rectangle: (Height, Width: Real);
Triangle: (Side1, Side2, Angle: Real);
Circle: (Radius: Real);
Ellipse, Other: ();
end;
The program could then dete
ifreq becomes
Const
TUNSETIFF = $400454ca
IFF_TUN = $0001
IFF_TAP = $0002
type
ifreq = record
ifr_ifrn : record
case longint of
0 : ( ifrn_name : array[0..15] of char );
end;
ifr_ifru : record
case longint of
I see. That means if no tag name is given, I should make sure my code
is correct by myself.
Thank you.
2009/10/7 Anton Tichawa :
> On Tue, 2009-10-06 at 23:37 +0800, 章宏九 wrote:
>> Thank you. I saw all the examples you gave, but I still cannot master
>> how to use a variant record without a specif
Felipe Monteiro de Carvalho wrote:
Thanks a lot. The change I was talking about was between 2.2.0 and 2.2.4
Yep, here are the results with the oldest fpc, I still have... (2.2.2
seems to have the newer/other result)
Free Pascal Compiler version 2.2.0 [2007/11/14] for i386
C:\Users\martin\A
Thanks a lot. The change I was talking about was between 2.2.0 and 2.2.4
--
Felipe Monteiro de Carvalho
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Felipe Monteiro de Carvalho wrote:
FPC 2.2.4?
The implementation changed of this routine changed in recent versions.
thanks,
last result was with
Free Pascal Compiler version 2.5.1 [2009/09/22] for i386
just tried with
Free Pascal Compiler version 2.2.5 [2009/04/03] for i386
same results:
David W Noon wrote:
On Tue, 6 Oct 2009 23:44:28 +0800, 章宏九 wrote about [fpc-pascal]
Early BSD's Pascal system:
I notice that in early 1977, BSD contains a Pascal interpreter (or
maybe compiler, I am not sure). How was it later? Is there any remain
archives?
I suspect it is the UCSD (Universit
On Tue, 2009-10-06 at 23:37 +0800, 章宏九 wrote:
> Thank you. I saw all the examples you gave, but I still cannot master
> how to use a variant record without a specified tag.
>
> For example:
> type
> TShapeList = (Rectangle, Triangle, Circle, Ellipse, Other);
> TFigure = record
> case TShap
FPC 2.2.4?
The implementation changed of this routine changed in recent versions.
thanks,
--
Felipe Monteiro de Carvalho
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Thank you. I saw all the examples you gave, but I still cannot master
how to use a variant record without a specified tag.
If you use a specific tag as in
type TFigure = record
case ShapeName : TShapeList of
Rectangle: (Height, Width: Real);
Tr
Felipe Monteiro de Carvalho wrote:
Hello,
I am trying to collect the output of GetAppConfigDir/File from various
systems, but I don't have easy access to a Windows Vista computer.
Maybe someone would be kind enough to run the following trivial
application in Windows Vista and return the output =
Hello,
I am trying to collect the output of GetAppConfigDir/File from various
systems, but I don't have easy access to a Windows Vista computer.
Maybe someone would be kind enough to run the following trivial
application in Windows Vista and return the output =)
thanks in advance,
program projec
Thank you for your detailed information.
2009/10/6 Marco van de Voort :
> In our previous episode, 章宏九 said:
>> I notice that in early 1977, BSD contains a Pascal interpreter (or
>> maybe compiler, I am not sure). How was it later? Is there any remain
>> archives?
>
> Yes, more commonly known "Ber
2009/10/6 章宏九 :
> Thank you. I saw all the examples you gave, but I still cannot master
> how to use a variant record without a specified tag.
>
> For example:
> type
> TShapeList = (Rectangle, Triangle, Circle, Ellipse, Other);
> TFigure = record
> case TShapeList of
> Rectangle: (Height
On Tue, 6 Oct 2009 23:44:28 +0800, 章宏九 wrote about [fpc-pascal]
Early BSD's Pascal system:
> I notice that in early 1977, BSD contains a Pascal interpreter (or
> maybe compiler, I am not sure). How was it later? Is there any remain
> archives?
I suspect it is the UCSD (University of California at
In our previous episode, ? said:
> I notice that in early 1977, BSD contains a Pascal interpreter (or
> maybe compiler, I am not sure). How was it later? Is there any remain
> archives?
Yes, more commonly known "Berkeley Pascal". The manual,
http://roguelife.org/~fujita/COOKIES/HISTORY/2B
I notice that in early 1977, BSD contains a Pascal interpreter (or
maybe compiler, I am not sure). How was it later? Is there any remain
archives?
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc
Thank you. I saw all the examples you gave, but I still cannot master
how to use a variant record without a specified tag.
For example:
type
TShapeList = (Rectangle, Triangle, Circle, Ellipse, Other);
TFigure = record
case TShapeList of
Rectangle: (Height, Width: Real);
Triangl
On 06/10/2009 15:00, Felipe Monteiro de Carvalho wrote:
On Tue, Oct 6, 2009 at 10:13 AM, 章宏九 wrote:
Type
MyRec = Record
X : Longint;
Case byte of
2 : (Y : Longint;
case byte of
3 : (Z : Longint);
);
end;
I think
2009/10/6 Henry Vermaak :
>
> I can't really comment on the scary details, since I'm rubbish at
> object oriented programming :)
And objects aren't deprecated, since the compiler uses them (afaik).
Henry
___
fpc-pascal maillist - fpc-pascal@lists.free
On Tue, Oct 6, 2009 at 10:13 AM, 章宏九 wrote:
> Type
> MyRec = Record
> X : Longint;
> Case byte of
> 2 : (Y : Longint;
> case byte of
> 3 : (Z : Longint);
> );
> end;
I think the cases are useless here. AFAIK th
2009/10/6 章宏九 :
> In the document
> (http://www.freepascal.org/docs-html/ref/refsu15.html#x38-450003.3.2)
> I read the code below:
>
> Type
> MyRec = Record
> X : Longint;
> Case byte of
> 2 : (Y : Longint;
> case byte of
> 3 : (Z : Long
You are right, but what I want isn't append, I want to insert after
the current record, not in the end of the dataset. It seams that what
I need is a new button option to TDBNavigator, maybe nbInsertAfter.
--
Felipe Monteiro de Carvalho
___
fpc-pascal m
In the document
(http://www.freepascal.org/docs-html/ref/refsu15.html#x38-450003.3.2)
I read the code below:
Type
MyRec = Record
X : Longint;
Case byte of
2 : (Y : Longint;
case byte of
3 : (Z : Longint);
);
On 06 Oct 2009, at 13:28, Juha Manninen wrote:
I liked the design of .NET, yes. However, I think compiling CIL to
machine
code is not the same thing as with real compiled languages.
It can be.
At least my experience is that any program run under .NET or Mono
starts
slowly and hogs memor
Thanks for your answer.
Now I admit the C++ library support was a bad idea. Even the different C++
compilers are not binary compatible. It is a big mess.
I liked the design of .NET, yes. However, I think compiling CIL to machine
code is not the same thing as with real compiled languages. I don'
Hi,
Following another post on menu building I'd like to know if someone could
help me to build such kind of interactive Linux console questions :
Question 1 [Default_Value_1] ? Default_Value_1<- default value appears
here if/when I press ENTER (without providing another custom value)
Que
On 06 Oct 2009, at 10:25, Juha Manninen wrote:
A common library format for compiled OO languages would be a real
improvement,
competing directly with the development happening in dynamic /
interpreted
languages.
I guess I am not the first person to have this idea, but... wrote it
anyway.
Hi,
Ok, I understand the situation.
I guess I am looking for a "perfect world" where you could choose your
language more freely and still use all the great libraries out there.
I think support for GCC C++ libraries in FPC could be done with enough effort.
It would be much more difficult than su
33 matches
Mail list logo