Am 27.07.2022 um 15:14 schrieb Ched via fpc-pascal:
Hello All,
I have a long code which include lines for writing stuffs into an
assigned writable text-file F.
WRITELN(F: 'Hello');
WRITELN(F, 'Hello');
The code can be compiled with 3.2.2 in i386/windows and i386/linux and
runs both t
Le 27.07.2022 à 17:41, DougC via fpc-pascal a écrit :
WRITELN(F: 'Hello');
is not proper Pascal.
Yes, Doug, I agree ; but it is compiled with no warning and runs perfectly. Now, why the compiler do not
complain... ?
Cheers, Ched'
___
fpc-pascal ma
WRITELN(F: 'Hello');
is not proper Pascal.___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
This can't be right, can it?
type
TBird = class
procedure Fly;
end;
TEagle = TBird; // alias
procedure TEagle.Fly;
begin
end;
It does depend on what you expect an Type-Alias to be.
If you expect the compiler to generate an compatible class then your
example must not be compi
On Sun, 13 Feb 2022, Sven Barth via fpc-pascal wrote:
Personally, I would not allow this.
But Delphi compiles and runs it...
... and Delphi's class completion no longer works in the unit giving a
useless error "expected ';' but '.' found". So it is one of those
Delphi "features" compiling bu
Am 13.02.2022 um 10:25 schrieb Sven Barth via fpc-pascal:
Michael Van Canneyt via fpc-pascal mailto:fpc-pascal@lists.freepascal.org>> schrieb am
So., 13. Feb. 2022, 09:47:
On Sun, 13 Feb 2022, Mattias Gaertner via fpc-pascal wrote:
> On Sat, 12 Feb 2022 12:14:14 +0100 (CET)
> M
Michael Van Canneyt via fpc-pascal
schrieb am So., 13. Feb. 2022, 09:47:
>
>
> On Sun, 13 Feb 2022, Mattias Gaertner via fpc-pascal wrote:
>
> > On Sat, 12 Feb 2022 12:14:14 +0100 (CET)
> > Michael Van Canneyt via fpc-pascal
> > wrote:
> >
> >> On Sat, 12 Feb 2022, Mattias Gaertner via fpc-pasca
On Sun, 13 Feb 2022, Mattias Gaertner via fpc-pascal wrote:
On Sat, 12 Feb 2022 12:14:14 +0100 (CET)
Michael Van Canneyt via fpc-pascal
wrote:
On Sat, 12 Feb 2022, Mattias Gaertner via fpc-pascal wrote:
> Hi,
>
> This can't be right, can it?
>
> type
> TBird = class
>procedure Fly;
>
On Sat, 12 Feb 2022 12:14:14 +0100 (CET)
Michael Van Canneyt via fpc-pascal
wrote:
> On Sat, 12 Feb 2022, Mattias Gaertner via fpc-pascal wrote:
>
> > Hi,
> >
> > This can't be right, can it?
> >
> > type
> > TBird = class
> >procedure Fly;
> > end;
> > TEagle = TBird; // alias
> >
> > pr
On Sun, 13 Feb 2022, Ryan Joseph via fpc-pascal wrote:
On Feb 12, 2022, at 11:40 PM, Jonas Maebe via fpc-pascal
wrote:
I wouldn't consider this to be working by design, but rather because of
implementation limitations.
I agree and it should be fixed probably.
As I wrote in my initia
> On Feb 12, 2022, at 11:40 PM, Jonas Maebe via fpc-pascal
> wrote:
>
> I wouldn't consider this to be working by design, but rather because of
> implementation limitations.
I agree and it should be fixed probably.
Regards,
Ryan Joseph
__
On Sat, 12 Feb 2022 17:58:27 +0100
Jonas Maebe via fpc-pascal wrote:
>[...]
> >> I wouldn't consider this to be working by design, but rather
> >> because of implementation limitations.
+1
pas2js complained. That's how I found out. Someone renamed a class,
added an alias for compatibility, for
On 12/02/2022 17:47, Michael Van Canneyt via fpc-pascal wrote:
On Sat, 12 Feb 2022, Jonas Maebe via fpc-pascal wrote:
On 12/02/2022 17:36, Michael Van Canneyt via fpc-pascal wrote:
PS. Just tested, the compiler accepts both... Amazing, I never
thought this
would be possible. I'd better update
On Sat, 12 Feb 2022, Jonas Maebe via fpc-pascal wrote:
On 12/02/2022 17:36, Michael Van Canneyt via fpc-pascal wrote:
PS. Just tested, the compiler accepts both... Amazing, I never thought this
would be possible. I'd better update the docs :-)
I wouldn't consider this to be working by desig
On 12/02/2022 17:36, Michael Van Canneyt via fpc-pascal wrote:
PS. Just tested, the compiler accepts both... Amazing, I never thought this
would be possible. I'd better update the docs :-)
I wouldn't consider this to be working by design, but rather because of
implementation limitations.
Jo
On Sat, 12 Feb 2022, Sven Barth via fpc-pascal wrote:
Michael Van Canneyt via fpc-pascal
schrieb am Sa., 12. Feb. 2022, 12:14:
On Sat, 12 Feb 2022, Mattias Gaertner via fpc-pascal wrote:
Hi,
This can't be right, can it?
type
TBird = class
procedure Fly;
end;
TEagle = TBird; // a
Michael Van Canneyt via fpc-pascal
schrieb am Sa., 12. Feb. 2022, 12:14:
>
>
> On Sat, 12 Feb 2022, Mattias Gaertner via fpc-pascal wrote:
>
> > Hi,
> >
> > This can't be right, can it?
> >
> > type
> > TBird = class
> >procedure Fly;
> > end;
> > TEagle = TBird; // alias
> >
> > procedure
On Sat, 12 Feb 2022, Mattias Gaertner via fpc-pascal wrote:
Hi,
This can't be right, can it?
type
TBird = class
procedure Fly;
end;
TEagle = TBird; // alias
procedure TEagle.Fly;
begin
end;
Personally, I would not allow this.
But Delphi compiles and runs it...
Maybe something to
Am 01.01.2021 um 19:21 schrieb Mattias Gaertner via fpc-pascal:
Hi,
library test;
procedure Test; begin end;
exports
Test name 3 'abc';
//^^^
end.
It's a bug. Please report.
Regards,
Sven
___
fpc-pascal maillist - fpc-pascal@lists
On Fri, 1 Jan 2021, Mattias Gaertner via fpc-pascal wrote:
Hi,
library test;
procedure Test; begin end;
exports
Test name 3 'abc';
//^^^
end.
I think this is a bug. Delphi also barfs on it.
However the following does work:
exports
Test index 1 name 'abc';
Although incomp
20 matches
Mail list logo