sure you don't have circular references.
It happens often in such cases.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
there a way to reduce the time for the
ExecSql?
You must prepare the desttable query before starting the loop.
Then it does not need to prepare/unprepare.
the faster way is using a foreign table definition in Postgres, though.
You can then do the copy w
rew/lib to the link search
path.
So good to go.
For next release can we change the gmp.pas source to:
{$ifdef darwin}
{$linklib gmp.dylib}
{$endif}
Done.
Michael.___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.o
copy the sources to your project, change the version number and you
should be all set.
Of course, if the library changed a lot - 7 versions is a lot,
it may well be that the definitions in the unit are no longer correct.
Michael.___
fpc-pascal mai
On Mon, 3 Feb 2025, ppadilcdx--- via fpc-pascal wrote:
Is there a reason that the fpc installation does not include the fcl-stl
examples and docs in the share/doc directory? I had to download the fpc source
to find them (in packages/fcl-stl).
No, it is an oversight.
Michael
functions previously found in the ncurses library are
now simply in another library, the question then becomes 'which one ?'
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
On Tue, 21 Jan 2025, Frank McCormick via fpc-pascal wrote:
On 2025-01-21 09:00, Michael Van Canneyt via fpc-pascal wrote:
On Mon, 20 Jan 2025, Frank McCormick via fpc-pascal wrote:
I have been trying out a CRT replacement called NCRT and OCRT and
am getting link errors which I can
//unix.stackexchange.com/questions/30526/undefined-reference-to-symbol-acs-map-when-running-makeconfig
So try to add
{$linklib tinfo}
to your program source.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
On Sat, 28 Dec 2024, Andrew Haines via fpc-pascal wrote:
Hi, is unixsockets.pp in rtl-extra supposed to be included when fpc is
built for linux? I ran
Yes. It was not built, I added it to fpmake.
I also applied the fix you mentioned for the size_t problem.
Michael
On Fri, 20 Dec 2024, Karoly Balogh via fpc-pascal wrote:
Hi,
On Fri, 20 Dec 2024, Michael Van Canneyt via fpc-pascal wrote:
If I compile it with:
Free Pascal Compiler version 3.3.1-16969-g798f2ba632-dirty [2024/11/28] for
i386
I get almost what I expected, but my #$EE is now been changed
's susceptible to codepage issues, and will most likely behave differently
depending on whether the ANSI or WideString version of the underlying
windows API is used.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
ply a
lazbuild yourproject.lpi
lazbuild is a command-line tool that comes with lazarus, it can be used to
compile a project file with the same settings as would be used if you were
compiling in the IDE.
Michael.
___
fpc-pascal maillist - fpc-p
implementation.
The point of the message was that some flexibility in judgment is needed,
and that this works in both directions: both more or less than what is in a
standard can be expected. I gave examples of both situations.
Michael.
___
fpc-pascal m
On Sun, 15 Dec 2024, Adriaan van Os via fpc-pascal wrote:
Michael Van Canneyt via fpc-pascal wrote:
On Sat, 14 Dec 2024, Adriaan van Os via fpc-pascal wrote:
It's not because something is in the pascal standard, that FPC has it.
It is. Appendix D6 of the Programmer's Refe
On Sat, 14 Dec 2024, Adriaan van Os via fpc-pascal wrote:
Michael Van Canneyt via fpc-pascal wrote:
On Sat, 14 Dec 2024, Adriaan van Os via fpc-pascal wrote:
Macpascal and Iso pascal have procedural parameters, e.g.
function A( function B: double): double;
Is there a $modeswitch
annot be used to declare types.
Similarly, you also cannot write:
function A(B : (one,two,three)) : double;
Also, I wonder if "ISOPROGRAMPARAS" in the Programmer's Guide is spelled
correctly.
It is, as that is what is used in the compiler: globtype.pas:736
Michael.
_
On Wed, 4 Dec 2024, Sven Barth via fpc-pascal wrote:
Michael Van Canneyt via fpc-pascal
schrieb am Mi., 4. Dez. 2024, 18:24:
@Michael: do you think you can take a look? I also got the feeling that
it
tries to compile more while nothing changed than with 3.2.2, though I did
not yet
crashes though then what I have now.
The likely candidate is the reworked module loading that still has its
problems.
Seems likely.
@Michael: do you think you can take a look? I also got the feeling that it
tries to compile more while nothing changed than with 3.2.2, though I did
not yet have
On Sun, 1 Dec 2024, Hairy Pixels via fpc-pascal wrote:
On Nov 30, 2024 at 11:54:21 PM, Michael Van Canneyt via fpc-pascal <
fpc-pascal@lists.freepascal.org> wrote:
sorry but it’s not really part of the compiler, just something that
generates commands it feeds to the compile right?.
On Sat, 30 Nov 2024, Hairy Pixels via fpc-pascal wrote:
On Nov 30, 2024 at 3:11:10 PM, Michael Van Canneyt via fpc-pascal <
fpc-pascal@lists.freepascal.org> wrote:
This is very much on topic. FPC has no build system
Huh ? Of course it does, it has 2. fpcmake (older) and fpmake.
llow the instructions from Install.txt I
get this:
This is very much on topic. FPC has no build system
Huh ? Of course it does, it has 2. fpcmake (older) and fpmake.
Please don't spread incorrect information.
Michael.___
fpc-pasc
resentative with bullhorn for the lists pages ;-)
Well done pages, for sure!
Michael.___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
a fpc config file, then in that case it is definitely documented here:
https://www.freepascal.org/docs-html/current/user/userse17.html
Michael.___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinf
> discussion.? (mostly from yourself).
It is quite singular, but there is Ultrastar Deluxe
(https://github.com/UltraStar-Deluxe/USDX), a cross-platform Karaoke game,
which is based on fpc using OpenGL, SDL and quite a number of other libraries
instead of lazarus. However, it is quite involved
On Sat, 16 Nov 2024, Marcos Douglas B. Santos via fpc-pascal wrote:
On Sat, Nov 16, 2024 at 11:43 AM Michael Van Canneyt via fpc-pascal
wrote:
> I could see that if it was a compiler for “Pascal” which was defined by
> some other group and you could reference them but it isn’t. FP
On Sat, 16 Nov 2024, Hairy Pixels via fpc-pascal wrote:
On Nov 16, 2024 at 7:24:01 PM, Michael Van Canneyt
wrote:
That said, the Free Pascal website is not about the pascal language.
It is about the compiler. The GNU compiler or LLVM C compiler also do not
contain code on their website
ere is only one Rust, Ruby whatnot.
Their compiler/interpreters *are* the language, so there it is logical and
suitable to present the language on their site.
But my plan is to include a 'Try it out now' page with the pas2js compiler
(or the fpc webassembly compile
xml.
fpdoc is documented here
https://www.freepascal.org/docs-html/current/fpdoc/fpdoc.html
Michael.___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
ARC is a bad idea (it may well be), but because it is not
realistic to do so, even if we wanted to.
As a corollary, the conclusion is that if you want ARC, you should
indeed use another language.
I regret that this is so, but I think this really is the u
it)
Of course, that means no 3rd party code must introduce global vars. If it
does => bad.
I agree with Martin. Threading should always be optional.
But to have a set of 'primitive' classes (lists etc.) that handle threading
in SyncObjs would be good, though.
So people d
azarus/FPC Foundation is better geared to manage funding and
coordinate targeted development of features?
That is the purpose of the foundation.
I was planning to look at the funding manifest this weekend...
Michael.___
fpc-pascal maillist - fpc-
On Thu, 17 Oct 2024, Sven Barth via fpc-pascal wrote:
Michael Van Canneyt via fpc-pascal
schrieb am Do., 17. Okt. 2024, 11:40:
On Wed, 16 Oct 2024, Hairy Pixels via fpc-pascal wrote:
On Oct 17, 2024 at 12:03:47 AM, Guillermo Martínez Jiménez via
fpc-pascal <
fpc-pas
singly,
they removed again all automatic memory management.
Michael.___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
a "modern" site)
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
On Wed, 16 Oct 2024, Hairy Pixels via fpc-pascal wrote:
On Oct 17, 2024 at 4:12:08 AM, Michael Van Canneyt via fpc-pascal <
fpc-pascal@lists.freepascal.org> wrote:
I have proposed this to the FPC core team, after some insistance I managed
to get a list of constraints from (if memory
site (20+ years old?) can use an overhaul,
and that with the above plan, no developer time needs to be spent on it.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
st,
they would not have made it available to all developers in the company.
So if you want young people to come to pascal, but present them with an IDE
that looks like a 1995 IDE, don't be surprised that they don't stay.
Michael.
___
fpc-pa
welcome...
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
$ref handling is a bit hairy. Available documentation is
definitely lacking in clarity)
The next step is adding support for OpenApi (AKA swagger).
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/ma
Hungarian:
--
Legyen szíves angolul írni.
A levelezőlista nyelve angol.
Valószínűleg csak néhány ember van itt, aki ért magyarul.
Valószínűleg a többiek is szeretnék érteni, amit írsz.
(a "Google fordító" segítségével fordítva)
Köszönöm.
English:
Please have the courte
ht be interested, feel free to forward this mail to
them.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
the same as NetAddrToStr6, but with the bytes in correct order.
I think that the second "NetAddrToStr6" should be something else, probably
"HostAddrToStr6".
Yes. Thanks, I corrected it.
Michael.
___
fpc-pascal mai
On Mon, 1 Jul 2024, Sven Barth via fpc-pascal wrote:
Adriaan van Os via fpc-pascal schrieb am
Sa., 29. Juni 2024, 21:21:
Michael Van Canneyt via fpc-pascal wrote:
Is that a function in the RTL? I can't find it.
No, these are platform-specific functions.
g_get_monotonic_ti
u will probably find in the Windows unit.
Microseconds can be found in the Timer unit (part of univint package)
Michael.___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
elf does not use TMonitor.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
On Sat, 4 May 2024, Tony Whyman via fpc-pascal wrote:
Michael,
I believe that the diplomatic answer to your response is that it is
"disappointing". This is a serious problem and needs to be discussed.
Thank you for being diplomatic.
Interfaces between modules written in
possibly with a wrapper class for easier access as in the above.
That should not be difficult to do, and it will work in Delphi as well.
The advantage is that it will be more robust against future changes as it
makes no assumptions about the layout of objects.
Michael.
course there must be, that's the whole point of copy-on-write.
As soon as one reference is changed, a copy is made if the reference count
is larget than 1, and this copy is changed.
Michael.___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
htt
e address of
the pointer itself, not the address of what S (or s1) points to.
Obviously the address of the s is different of s1.
What you want to do is print hexstr(pointer(s))
if you do that, you'll have the same output 3 times.
Michael.
_
no package other that is a program.
chm has some tools but IMO they are also misplaced and should be in utils.
So the IDE - for me - is definitely a utility. Given the times indicated above,
it would make a considerable difference to move it.
Michael.
On Thu, 14 Mar 2024, Tomas Hajny via fpc-pascal wrote:
On 2024-03-14 11:06, Marco van de Voort via fpc-pascal wrote:
Op 14-3-2024 om 11:04 schreef Michael Van Canneyt via fpc-pascal:
To me it therefore seems a better idea to move the IDE to utils, and to
have a
toplevel make command
o the argument for having it in packages.
To me it therefore seems a better idea to move the IDE to utils, and to have a
toplevel make command that does the same as 'make all' simply without the
utilities. Or have a 'NOUTILS=1' define.
Michael.___
On Thu, 22 Feb 2024, Michael Anochin via fpc-pascal wrote:
Hello,
the TCustomJSONRPCHandler.DoCheckParamArray in fpjsonrpc.pp causes an
exception with the message "List index (0) out of bounds".
This happens, for example, if ParamArray is empty and there are not
required pa
Hello,
the TCustomJSONRPCHandler.DoCheckParamArray in fpjsonrpc.pp causes an
exception with the message "List index (0) out of bounds".
This happens, for example, if ParamArray is empty and there are not
required parameter in ParamDef (required not set). In that case
ParamArray[i] not exists, s
at all.
It seems to be a windows-specific problem. Here is the result of your
program when executed on Linux:
Const_Ans1 = 2.85714298486709594727E-0001
Var_Ans1 = 2.85714298486709594727E-0001
As you can see, the result is identifical.
As for the explanation, I will have to leave that to the comp
ant type to use.
(incidentally, this is one of the reasons the FPC team does not want to make
inline variables as Delphi does, since there the type will again be determined
by
the compiler - just as for constants, leading to ambiguity...)
Michael.
___
fpc-
On Fri, 16 Feb 2024, Pique7 via fpc-pascal wrote:
On Mon, 8 Jan 2024 22:08:16 +0100 (CET)
Michael Van Canneyt via fpc-pascal wrote:
On Mon, 8 Jan 2024, Pique7 via fpc-pascal wrote:
Disregarding the RTF for a moment, you'd need to save the contents of the
text fields in a TStrin
ce on the final
answer, not on every term before the calculation.
As Jonas said, this would result in less efficient code, since all the math
will then be done at full precision, which is slower.
As usual, it is a trade-off between size (=precision) and
he type is of the expression on the left.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
On Wed, 31 Jan 2024, Amir--- via fpc-pascal wrote:
Without more info (declaration of ChildTClass, declaration of the
constructor
of that class etc), it is not possible to comment.
We need a complete compilable code sample to provide you with more insight.
Please have a look at the attach
mment.
We need a complete compilable code sample to provide you with more insight.
Michael.___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
ress('Int2')^).IntVal);
Terribly convoluted code, though...
Michael.___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
(const name : shortstring) : pointer;
This function is used internally by the streaming system (see
TComponent.SetReference), so it should always work.
Michael.
You can use the PVmtFieldTable and PVmtFieldEntry types from the
TypInfo unit:
=== code begin ===
program tfield;
{$mode objfpc}{$H
sion } .
actual-parameter-list = "(" actual-parameter { "," actual-parameter } ")" .
The compiler obviously can parse it.
More accurately, I meant: you cannot write a function declaration to handle
that syntax.
procedure Str(O : Intege
to count generics and implicit specialization as "standard
syntax")
Michael.___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
; ? Or
better suggestion?
That seems most correct to me.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
tool) then this file is
left, it helps to examine what happened.
You can delete them.
Michael.___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
n
p := @Byte(b);
This is a typecast of b from which you take the address. The typecast is
superfluous.
p:=@b
will have the same effect.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailm
optimizations are
done.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
I'm not sure how the band will behave.
Michael.
Thanks again for your suggestions. I haven't tried it yet but now I've got the
idea. Your are so optimistic but I still fear all the things which might make
troubles in a more complex report with grouping, master/detail data,
calculat
does not compile, although I don't see why if kr5 is accepted..
Delph does not accept it.
kr7 = 1.0e+2;
kr8 = 1.0 e + 2;
kr8 Does not compile, probably same reason as kr6. Delphi does not accept it.
Mi
tween FPC_USE_LIBC and
not are rather slim syscalls anyway, so the main bunch of Pascal code is
still the same in both cases.
I know this, but most likely users will not realize this... :-)
Michael.___
fpc-pascal maillist - fpc-pascal@lists.freepasca
us options.
I think we should also explain why linking to C has almost no effect on actual
binary size.
Michael.___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
aily&utm_medium=newsletter&utm_content=top-article
Yes, we put a short notice on the Free Pascal homepage...
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
On Tue, 2 Jan 2024, Pique7 via fpc-pascal wrote:
On Tue, 2 Jan 2024 00:02:35 +0100 (CET)
Michael Van Canneyt via fpc-pascal wrote:
On Mon, 1 Jan 2024, Pique7 via fpc-pascal wrote:
Hello everyone,
I have already asked this and related questions in the Lazarus Forum.
I want to improve
I think this is perfectly doable without any changes to the original code.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
On Mon, 1 Jan 2024, Hairy Pixels via fpc-pascal wrote:
On Dec 30, 2023, at 3:18 PM, Michael Van Canneyt via fpc-pascal
wrote:
And try to avoid "for r in data" because it will create a copy for each element
in the list.
This seems more like bad compiler design than anything.
ne saw the need.
Michael.___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
ou defined TListOfMyRecord, but if it is a
generic TList, better change it to a TArray or Array
of TMyRecord, in which case you can use a pointer to the consecutive records
in the array. Generics are convenient, but slow.
Michael.___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
TELN is
special and not something I can duplicate?
Writeln() is special. You cannot duplicate it.
What you can do is use WriteStr(), it has the same action as Writeln() but
writes to a string instead of a file.
https://www.freepascal.org/docs-html/current/rtl/system/writest
On Mon, 25 Dec 2023, Adriaan van Os via fpc-pascal wrote:
Michael Van Canneyt via fpc-pascal wrote:
This is not correct either, as it suggests that ( ... ) is correct. It is
not, if you use ... there must be other arguments present.
That is offending the reader: "You are to stupid
On Sun, 24 Dec 2023, Adriaan van Os via fpc-pascal wrote:
Michael Van Canneyt via fpc-pascal wrote:
I added univ and documented it.
Something seems to have gone wrong with the defintion on page
212.
Corrected, thanks.
Having a better look, the rule defines just one
parameter. So
On Sun, 24 Dec 2023, Adriaan van Os via fpc-pascal wrote:
Michael Van Canneyt via fpc-pascal wrote:
The following zip file contains the updated documentation:
http://downloads.freepascal.org/fpc/beta/3.2.4-rc1/docs/doc-pdf.zip
Besides correcting your remarks, I did a general overhaul:
- I
On Sun, 17 Dec 2023, Adriaan van Os via fpc-pascal wrote:
Michael Van Canneyt wrote:
32. Are the set operators "include", "exclude" missing in the syntax
diagrams ? Is "><" missing (specifically) as set operator in the syntax
diagrams ?
Include
On Sun, 17 Dec 2023, Adriaan van Os via fpc-pascal wrote:
Michael Van Canneyt via fpc-pascal wrote:
On Sat, 16 Dec 2023, Adriaan van Os via fpc-pascal wrote:
More questions about the FreePascal Language Reference (version 3.2.0),
part 4
34. Are macpas LEAVE and CYCLE statements
;
var theFoundIndex : Int32): boolean;
But this kind of procedural parameter doesn't seem to be included in the rule
for . it is allowed in macpas and iso modes.
I added univ and documented it.
Michael.
___
fpc-pascal maillist -
yword.
Added to the diagrams.
I changed the diagram to be more clear (hopefully).
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
On Sun, 17 Dec 2023, Adriaan van Os via fpc-pascal wrote:
Michael Van Canneyt via fpc-pascal wrote:
37. Shouldn't the macpas "mwpascal" modifier be added to ?
call-modifiers = "register" | "cdecl" | "pascal" | "stdcall" |
On Sun, 17 Dec 2023, Adriaan van Os via fpc-pascal wrote:
Michael Van Canneyt via fpc-pascal wrote:
28. The documentation for macpas "UNIV" is missing ?
I have no idea what this is ?
UNIV is macpas specific (as mentioned in Appendix D.6 of the Programmer's
Manual)
T
TEST_$$_TMANAGEDOBJECT,%rsi
leaq-96(%rbp),%rdi
callfpc_finalize
movl-92(%rbp),%eax
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
#x27;t seem to be referenced anywhere in the
syntax, so it may have to be added to the rule ?
To the library rule, but also to the unit rule, because it can also appear
in a unit...
40. < recordoperator-definition> = ?
Yes.
41. Is it cor
On Sat, 16 Dec 2023, Wayne Sherman wrote:
On Sat, Dec 16, 2023 at 7:35 AM Michael Van Canneyt wrote:
Hm. Lot of corrections to do.. I'll be busy tonight :-)
Are these grammars in GIT so others can help by submitting merge
requests? That way you can spread the love :-)
Every
g module, stopping
The missing >< is an oversight
33. Section 12.1 gives "sign" in boldface in the rule for ,
suggesting that it is a keyword. Is that correct ?
No.
It is not a keyword, but one of '+' or '-'.
Hm. Lot of corrections to do.. I'll be busy tonight :-)
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
s it ?
default-parameter-value = constant-expression
25. Section 16.2 defines a rule that refers to a rule
interface-part = "INTERFACE" [ uses-clause ] {
constant-declaration-part | type-declaration-part |
variable-declaration-part | property-declaration-part |
procedure-head
On Sat, 16 Dec 2023, Adriaan van Os via fpc-pascal wrote:
Michael Van Canneyt via fpc-pascal wrote:
Thanks for the replies.
Please note that the syntax diagrams are NOT meant to be exhaustive.
They are an aid to explain the syntax. I strive to make them as correct as
possible, but they
= identifier .
Yes. Added.
Thanks for the questions. They showed me deficiencies of the text.
I have corrected what could be done quickly.
For the typed constants I need some time to correct/add them, since I need
to provide some explanatory text.
Please note that the syntax diagrams ar
On Fri, 15 Dec 2023, Adriaan van Os wrote:
Michael Van Canneyt via fpc-pascal wrote:
The fact that the semicolon before the else is optional ?
I don't see a semicolon in the formal syntax.
This works:
OK, than an optional semicolon must be added to the rule
exceptionhan
static' is
required.
In my opinion this is superfluous, but embarcadero decided otherwise.
The requirement for parameters in record constructors I guess comes from C++ builder by Embarcadero.
There are some limitations imposed by C++.
Whether they could be dropped in FPC is something Sven
On Fri, 15 Dec 2023, Adriaan van Os via fpc-pascal wrote:
Michael Van Canneyt via fpc-pascal wrote:
On Fri, 15 Dec 2023, Adriaan van Os via fpc-pascal wrote:
Note that the same ambiguity exists in the syntax (and
this is less well known)
exceptionhandlers = [ exception-handler
eption-handler = "ON" [ identifier ":" ] class-type-identifier "DO"
statement .
as ends with a and the optional <"ELSE"
statement-list> part start with "ELSE". Sloppy language design, I assume by
Borland.
What exactly do you consider &q
1 - 100 of 5312 matches
Mail list logo