On 1/24/25 8:38 AM, Hairy Pixels via fpc-pascal wrote:
On Jan 24, 2025 at 1:34:26 PM, Nikolay Nikolov via fpc-pascal
wrote:
Doesn't matter whether they're handled in the same scope or not. It's
the same code. Usually they're not handled in the same scope, but in
a very d
On 1/24/25 8:12 AM, Hairy Pixels via fpc-pascal wrote:
On Jan 24, 2025 at 12:43:51 PM, Nikolay Nikolov via fpc-pascal
wrote:
That's not what exceptions are meant to be used for, though. What you
describe is called a program "defect". When you encounter a "defect&qu
On 1/24/25 7:16 AM, Hairy Pixels via fpc-pascal wrote:
On Jan 24, 2025 at 11:20:02 AM, Nikolay Nikolov via fpc-pascal
wrote:
As you can see, it's more complicated and more error prone. You can
simplify it a little bit with goto, but it will never be better,
compared to try...finally
On 1/24/25 4:04 AM, Hairy Pixels via fpc-pascal wrote:
On Jan 24, 2025 at 8:38:25 AM, Nikolay Nikolov via fpc-pascal
wrote:
Maybe because there's a much better way to write it:
procedure foo();
var
s1: TStringList = nil;
s2: TStringList = nil;
s3: TStringList = nil;
begin
try
On 1/24/25 3:21 AM, Hairy Pixels via fpc-pascal wrote:
On Jan 24, 2025 at 2:10:53 AM, Santi via fpc-pascal
wrote:
procedure foo()
var
s1: TStringList;
s2: TStringList;
s3: TStringList;
begin
s1:=TStringList.create;
try
s2:=TStringList.create;
try
s3:=TStringList.create;
tr
On 12/1/24 9:02 AM, Adriaan van Os via fpc-pascal wrote:
Hairy Pixels via fpc-pascal wrote:
ChatGPT is saying I can print unicode scalars like that but i don’t
see it works and no compiler warnings even. Did it make this up or
did I do something wrong?
Writeln('Unicode scalar 1F496: ', #$
On 12/1/24 8:14 AM, Hairy Pixels via fpc-pascal wrote:
ChatGPT is saying I can print unicode scalars like that but i don’t
see it works and no compiler warnings even. Did it make this up or did
I do something wrong?
Writeln('Unicode scalar 1F496: ', #$1F496); // 💖
This works for me under L
On 11/16/24 9:46 AM, Steve Litt via fpc-pascal wrote:
DougC via fpc-pascal said on Fri, 15 Nov 2024 19:15:13 -0500
I'm tempted to ask if you are seriously asking this. But I won't.
Design is a whole professional specialty. To say it boils down to
light vs. dark background or the amount of
On 11/16/24 3:45 AM, Tim Coates via fpc-pascal wrote:
I am a little on the fence regarding the comment re neither fish or
fowl...
each developer does their own thing in the language - whether that is
writing something for platform X or working on database Y etc.
Resources for learning are fe
On 11/1/24 7:14 PM, Henry Vermaak via fpc-pascal wrote:
On Fri, 1 Nov 2024 at 16:12, Henry Vermaak wrote:
On Fri, 1 Nov 2024 at 15:49, Martin Frb via fpc-pascal
wrote:
Another factor could be that debug info affects smartlinking. Or leaves symbols
for the linker in sections that are shared
On 10/21/24 3:17 PM, Sven Barth via fpc-pascal wrote:
Nikolay Nikolov via fpc-pascal
schrieb am Mo., 21. Okt. 2024, 08:32:
2) record types (as opposed to class), which can live on the stack
and have a pass-by-value semantics. FPC trunk supports advanced
records, so you get C
On 10/21/24 7:18 AM, Gordon Findlay via fpc-pascal wrote:
- distros sometimes have quite old versions in their repos. For
example my opensuse machine right now is offering Lazarus 2.2.
For this, we need help from FPC and Lazarus users, who actually use the
given distro. Someone needs to volu
On 10/21/24 5:37 AM, Hairy Pixels via fpc-pascal wrote:
then isn’t Pascal’s requirement to predeclare uninitialized variables
the worst possible design? In C you can at least declare a variable
with its assignment in one step but with Pascal by design you can
always read uninitialized memory
On 10/19/24 5:53 PM, Hairy Pixels via fpc-pascal wrote:
On Oct 19, 2024 at 9:37:49 PM, Nikolay Nikolov via fpc-pascal
wrote:
Counterexample 1: The growth of Rust.
which is the opposite of Pascal, total memory safety. Rust is one of
the reasons that show people don’t want bug prone manual
On 10/19/24 5:27 PM, Hairy Pixels via fpc-pascal wrote:
On Oct 19, 2024 at 9:15:10 PM, Rainer Stratmann via fpc-pascal
wrote:
I really can not see where beginners have to struggle with memory
management.
If a project gets bigger you have to think about it, yes. It depends
on the
coding style
On 10/19/24 4:34 PM, Hairy Pixels via fpc-pascal wrote:
On Oct 19, 2024 at 8:06:56 PM, Rainer Stratmann via fpc-pascal
wrote:
Sorry, but if you start then you start with a simple program and then
you have
to gain experience over time. That is the same case everywhere.
There is a german saywo
On 10/19/24 4:17 PM, Hairy Pixels via fpc-pascal wrote:
On Oct 19, 2024 at 8:06:44 PM, Martin Frb via fpc-pascal
wrote:
NOTE: the below is NOT about ARC. It is about the implication that
ARC == Safety (in the environment that we have)
Not following "in the environment that we have”. I’m just
On 10/18/24 11:41 AM, Karoly Balogh via fpc-pascal wrote:
Hi,
On Thu, 17 Oct 2024, Michael Van Canneyt via fpc-pascal wrote:
By contrast, Pascal is not designed with GC in mind.
You'd need to redesign the language.
If you do that, you can throw away all existing code if you introduce GC,
be
On 10/17/24 10:01 PM, Santi via fpc-pascal wrote:
El 16/10/2024 a las 05:12, Joao Paulo Schwarz Schuler via fpc-pascal
escribió:
Some half baked ideas:
* month after month, the percentage of code coded by AI grows and
human made shrinks.
* could Pascal be the ideal language coded (or preferre
On 10/17/24 10:29 AM, Nikolay Nikolov wrote:
On 10/17/24 10:10 AM, Michael Van Canneyt via fpc-pascal wrote:
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
On 10/17/24 10:10 AM, Michael Van Canneyt via fpc-pascal wrote:
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 insistanc
On 10/17/24 8:58 AM, Hairy Pixels via fpc-pascal wrote:
On Oct 17, 2024 at 12:03:47 AM, Guillermo Martínez Jiménez via
fpc-pascal wrote:
Prease DON'T add garbage collector. IMO it isn't a good idea. I had
very bad experiences with it. Unless somebody found a new magic
algorithm in the last d
On 10/16/24 8:19 PM, Michael Van Canneyt via fpc-pascal wrote:
On Wed, 16 Oct 2024, Nikolay Nikolov via fpc-pascal wrote:
On 10/16/24 4:57 PM, Hairy Pixels via fpc-pascal wrote:
On Oct 16, 2024 at 8:50:21 PM, Ștefan-Iulian Alecu via fpc-pascal
wrote:
4. a proper VSCode extension (we can
On 10/16/24 8:03 PM, Guillermo Martínez Jiménez via fpc-pascal wrote:
Prease DON'T add garbage collector. IMO it isn't a good idea. I had
very bad experiences with it. Unless somebody found a new magic
algorithm in the last decade...
I agree. Although, I'm not against someone adding a .NET t
On 10/16/24 5:29 PM, Hairy Pixels via fpc-pascal wrote:
On Oct 16, 2024 at 9:18:01 PM, Nikolay Nikolov via fpc-pascal
wrote:
I also have some experience from my day job on making a VS Code
extension for the Nim language (you can see my commits in the Nim
language server here
https
On 10/16/24 4:57 PM, Hairy Pixels via fpc-pascal wrote:
On Oct 16, 2024 at 8:50:21 PM, Ștefan-Iulian Alecu via fpc-pascal
wrote:
4. a proper VSCode extension (we can include Vim and Emacs there too,
but the main focus is VSCode) with all the bells and whistles more
established extensions have.
On 10/16/24 3:30 PM, Rainer Stratmann via fpc-pascal wrote:
Free Pascal is exactly as "scattered" all over the Linux system, as gcc,
clang, rust and pretty much any other compiler. How is this exactly a
problem, since all major distros ship fpc as an official package and it
is used to build othe
On 10/16/24 3:14 PM, Christo Crause via fpc-pascal wrote:
On Wed, Oct 16, 2024 at 2:12 AM Rainer Stratmann via fpc-pascal
wrote:
- Fpcupdeluxe: A good idea. But it doesn't work. I have tried to
install an
AVR crosscompiler on a Linux system. Fatal: Can't find unit
Infodrwf
On 10/16/24 6:00 AM, Hairy Pixels via fpc-pascal wrote:
FPC is not keeping up with trends in the industry which new
programmings want despite all the older programmers who are settled in
their ways. Even if there is a market for Lazarus type apps people in
2024 don’t want to use a massive lega
On 10/16/24 2:07 AM, Rainer Stratmann via fpc-pascal wrote:
At the Lazarus Congress in Cologne in October 2024, it ended up being very
interesting. An important question came up.
Why are no new users coming to Lazarus/Freepascal?
Why do we find it so difficult?
How can we get new, younger users
On 3/19/24 18:15, James Richters via fpc-pascal wrote:
I am trying to compile a program that uses PTCGraph for Windows 64
bit, and it’s not behaving the same as it does on Win32.
When I compile it for Win32, it is correctly detecting my monitor
resolutionI have a vertical monitor with a res
On 1/7/24 14:21, Ingemar Ragnemalm via fpc-pascal wrote:
Just for comparison, I fired up Think Pascal and made Hello world!
Plain Hello world, closes so quickly that you don't have time to see
it: 4625 bytes.
Including ShowText and while not Button do; 4639 bytes.
Yes, less than 5k! Progre
On 12/21/23 07:06, Hairy Pixels via fpc-pascal wrote:
On Dec 21, 2023, at 6:11 AM, Hairy Pixels wrote:
Maybe I misunderstood but I thought they were supposed to be balanced with init
calls. Is it the design of the compiler to allow multiple finalize calls and
have the user keep track of it
On 12/21/23 01:11, Hairy Pixels via fpc-pascal wrote:
On Dec 21, 2023, at 1:53 AM, Michael Van Canneyt via fpc-pascal
wrote:
If you look at the generated code, you see that there is an implicit
try/finally block
and the finally block does a finalize.
Maybe I misunderstood but I thought t
On 10/12/23 17:07, Hairy Pixels via fpc-pascal wrote:
Pascal still fits a niche as being a lower level language like C or C++ but
with nicer syntax.
That is true.
For making modern software it's going to be hard to use though since no major
OS's support it directly.
In what way does this
On 8/11/23 01:23, Hairy Pixels via fpc-pascal wrote:
On Aug 10, 2023, at 2:18 PM, Michael Van Canneyt via
fpc-pascal wrote:
https://www.freepascal.org/docs-html/current/ref/refse15.html#x42-620003.4
This document doesn't really do a great enumerating all the operators so I'm
not sure if t
On 7/4/23 09:12, Hairy Pixels via fpc-pascal wrote:
On Jul 4, 2023, at 12:38 PM, Nikolay Nikolov via fpc-pascal
wrote:
For console apps that use the Unicode KVM video unit, I've introduced two
functions for determining the display width of a Unicode string in the video
unit:
fun
On 7/4/23 08:08, Nikolay Nikolov wrote:
On 7/4/23 07:56, Hairy Pixels via fpc-pascal wrote:
On Jul 4, 2023, at 11:50 AM, Hairy Pixels wrote:
You know you're right, with properly enclosed patterns you can
capture everything inside and it works. You won't know if you had
unicode in your st
On 7/4/23 07:56, Hairy Pixels via fpc-pascal wrote:
On Jul 4, 2023, at 11:50 AM, Hairy Pixels wrote:
You know you're right, with properly enclosed patterns you can capture
everything inside and it works. You won't know if you had unicode in your
string or not though but that depends on wha
On 7/4/23 07:45, Nikolay Nikolov wrote:
On 7/4/23 07:40, Hairy Pixels via fpc-pascal wrote:
On Jul 4, 2023, at 11:28 AM, Nikolay Nikolov via fpc-pascal
wrote:
For what grammar? What characters are allowed in a token? For
example, Free Pascal also has a parser/tokenizer, but since Pascal
On 7/4/23 07:40, Hairy Pixels via fpc-pascal wrote:
On Jul 4, 2023, at 11:28 AM, Nikolay Nikolov via fpc-pascal
wrote:
For what grammar? What characters are allowed in a token? For example, Free
Pascal also has a parser/tokenizer, but since Pascal keywords are ASCII only,
it doesn't
On 7/4/23 07:17, Hairy Pixels via fpc-pascal wrote:
On Jul 4, 2023, at 9:58 AM, Nikolay Nikolov via fpc-pascal
wrote:
You need to understand all these terms and know exactly what you need to do.
E.g. are you dealing with keyboard input, are you dealing with the low level
parts of text
On 7/4/23 04:19, Hairy Pixels via fpc-pascal wrote:
I've been exploring the string types and I'm curious now, does the classic Pascal
"ShortString" even make sense anymore on modern computers? I'm running tests
and I can't seem to find a way in which AnsiString overall performs worse than
Sh
On 7/4/23 04:03, Hairy Pixels via fpc-pascal wrote:
On Jul 4, 2023, at 1:15 AM, Mattias Gaertner via fpc-pascal
wrote:
function ReadUTF8(p: PChar; ByteCount: PtrInt): PtrInt;
// returns the number of codepoints
var
CodePointLen: longint;
CodePoint: longword;
begin
Result:=0;
while
On 7/2/23 20:38, Martin Frb via fpc-pascal wrote:
On 02/07/2023 19:20, Nikolay Nikolov via fpc-pascal wrote:
On 7/2/23 16:30, Hairy Pixels via fpc-pascal wrote:
I'm interested in parsing unicode scalars (I think they're called)
to byte sized values but I'm not sure where to sta
On 7/2/23 16:30, Hairy Pixels via fpc-pascal wrote:
I'm interested in parsing unicode scalars (I think they're called) to byte
sized values but I'm not sure where to start. First thing I did was choose the
unicode scalar U+1F496 (💖).
There's no such thing as "unicode scalar" in Unicode termin
On 6/12/23 04:44, Steve Litt via fpc-pascal wrote:
Hi all,
Tail recursion is recursion in which absolutely nothing gets executed
after the return statement. Some programming languages, including
Guile, optimize for tail recursion such that tail recursive algorithms
don't use additional stack sp
On 4/14/23 20:38, Virgo Pärna via fpc-pascal wrote:
On Thu, 13 Apr 2023 20:53:09 -0400, Travis Siegel via fpc-pascal
wrote:
I know of no way to obtain the pause key status under windows. I can
Considering, that only Caps Lock, Scroll Lock and Num Lock keys
have status lights on keyb
On 9/10/22 17:57, James Richters via fpc-pascal wrote:
Thanks for the suggestion
I think the syntax should be:
type myKeyEvent = IPTCKeyEvent;
Var myShiftStatus : boolean;
myShiftStatus := myKeyEvent.Shift;
but I get IPTCKeyEvent not found. I wonder if it's only designated as
internal.. or
On 8/29/22 11:33, Jean SUZINEAU via fpc-pascal wrote:
Le 29/08/2022 à 01:41, James Richters via fpc-pascal a écrit :
If a special function is needed for some COM thing or weird Winapi
thing, then that function should be part of the unit that needs it,
not modifying the generic function intende
On 3/12/22 15:54, James Richters via fpc-pascal wrote:
Is there some way I can set the location of the pctgraph window before
it is created so it just pops up where I want it to be?I’m using
Windows 10.
I’ve been re-locating it with SetWindowPos() which is ok if the window
is going to be o
On 3/9/21 2:18 AM, Graeme Geldenhuys via fpc-pascal wrote:
On 08/03/2021 7:49 pm, Jonas Maebe via fpc-pascal wrote:
It's not possible to safely use unicodestring without
knowing how 16bit unicode works. The compiler can't solve that.
I disagree. Java does just that! The issue is the assumption
On 3/7/21 7:21 PM, Ryan Joseph via fpc-pascal wrote:
On Mar 7, 2021, at 10:11 AM, Marco van de Voort via fpc-pascal
wrote:
Yes it is. And there are about 1114000 unicode codepoints, or about 17 times
what fits in a 2-byte wide char.
https://en.wikipedia.org/wiki/Code_point
https://en.wi
sed (sometimes the error
is on putimage)
Other things that cause it:
Unplug monitor and plug it back in
Change Display settings
Putting computer to sleep
Unknown reasons… system just idle
James
*From:*fpc-pascal <mailto:fpc-pascal-boun...@lists.freepascal.org>> *On Behalf Of
*Nik
..@lists.freepascal.org>> *On Behalf Of
*Nikolay Nikolov via fpc-pascal
*Sent:* Thursday, January 7, 2021 2:17 AM
*To:* fpc-pascal@lists.freepascal.org
<mailto:fpc-pascal@lists.freepascal.org>
*Cc:* Nikolay Nikolov mailto:nick...@gmail.com>>
*Subject:* Re: [fpc-pascal] PTCGra
On 1/6/21 5:44 PM, James Richters via fpc-pascal wrote:
I’ve been having issues with PTCGraph causing a runtime Error 217 :
EAccessViolation: Access violation at seemingly random times in my
program.The error is always on a line with either GetImage() or
PutImage() but not the same one.The p
On 12/22/20 2:39 AM, Karoly Balogh (Charlie/SGR) via fpc-pascal wrote:
Hi,
On Mon, 21 Dec 2020, Sven Barth via fpc-pascal wrote:
As long as one knows why a certain temporal construct is used there is
no problem and at least in Germany (or more specifically Bavaria) we
were taught that in mass
On 12/21/20 10:42 AM, Markus Greim wrote:
FPC has had a Turbo Pascal-like console IDE for many years...
"has had" ?
AKAIK "has"
I still used it yesterday.
English is not my native language, but I think "has had" means it still
has it. If I had said "had" instead of "has had", it would
On 12/19/20 6:35 PM, Liam Proven via fpc-pascal wrote:
https://github.com/magiblot/tvision
Someone enterprising could make a TurboPascal clone out of FPC. :-)
Meh. FPC has had a Turbo Pascal-like console IDE for many years. It uses
Free Vision, which is a pascal port of the C++ version of Tur
ect: Re: [fpc-pascal] PTC Graph - Custom window sizes
Thank you very much Nikolay! I will test it and let you know the results.
James
-Original Message-
From: fpc-pascal On Behalf Of Nikolay
Nikolov via fpc-pascal
Sent: Thursday, November 19, 2020 1:07 PM
To: fpc-pascal@lists.freepasca
On 11/19/20 7:37 PM, Nikolay Nikolov wrote:
On 11/19/20 3:44 PM, James Richters via fpc-pascal wrote:
I've been using PTCGraph from PTCPas and so far I can only use
windows sizes that there happens to be a display driver for, even if
they are in a window.. so I can make a 640x480 or 1024x768
On 11/19/20 3:44 PM, James Richters via fpc-pascal wrote:
I've been using PTCGraph from PTCPas and so far I can only use windows sizes
that there happens to be a display driver for, even if they are in a window..
so I can make a 640x480 or 1024x768 window, but if I have a screen in a
vertic
62 matches
Mail list logo