It sounds more like you're making a case for all integers to be
initialized to zero by default. I still fail to see any practical uses
other than wanting to not type "integer" twice.
Alex
On 03/24/2018 11:20 AM, Ondrej Pokorny wrote:
On 24.03.2018 15:46, Alexander Grotewohl w
uses SysUtils; // inttostr
procedure blank(a: array of pointer);
var
i: longint;
begin
for i:=low(a) to high(a) do
// string(a[i]^):='';
string(a[i]^):='silly ~~~ '+IntToStr(i);
end;
var
s, i, l, {l,} y: string;
begin
blank([@s, @i, @l, {@l,} @y]);
writeln(s); writeln(i)
https://www.freepascal.org/docs-html/ref/refse20.html#x50-680003.9
On 04/04/2018 01:32 PM, Ondrej Pokorny wrote:
On 04.04.2018 18:53, Jonas Maebe wrote:
On 04/04/18 18:44, Ondrej Pokorny wrote:
I want to stress that the compiler emits a warning on code that does
not have (and also cannot have
To be honest I agree with what he's saying. We're bending enums to do
things normal people just wouldn't (and shouldn't) do.
And seriously, "Delphi, Delphi, Delphi!" .. why don't we strive for
something a little better and make the people porting from Delphi bend a
little this way than us thei
Not to mention the users who pick up FPC and have to port what they've
previously learned. That information is useful even if the code isn't
already written.
On 11/4/2018 7:41 AM, wkitt...@windstream.net wrote:
On 11/3/18 7:09 PM, Ben Grasset wrote:
(The same could be said about the various
can't you just use an untyped parameter in a clearmem procedure you make yourself?procedure ClearMem(var m);--Alexander Grotewohlhttp://dcclost.com___
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listin
It seems to be working tho--Alexander Grotewohlhttp://dcclost.com___
fpc-devel maillist - fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
I miss the sushi in Japan too my dude.--Alexander Grotewohlhttp://dcclost.comOn Jun 16, 2019 6:44 PM, Ryan Joseph wrote:
> On Jun 16, 2019, at 6:00 PM, Benito van der Zander wrote:
>
> Objects are much more useful than classes or records
Now that’s an inflammatory statement! :) But seriously, I
I'm assuming that's what the 'statementlist' means in the documentation
(rather than just 'statement')
On 9/19/2019 3:33 PM, Sven Barth via fpc-devel wrote:
Am 19.09.2019 um 21:07 schrieb Kirinn:
I've stumbled on a situation where a case statement compiles when I
wouldn't expect it to. I would
don't know off the top of my head but does the ord() bit segfault without assigning it to anything? like if the function only had writleln(ord())! or does the result:= section segfault using ord() without the pointers?my guess is it works on linux/mac purely by luck. but i could be wrong.--Alexande
or maybe don't use the variable name "result" because it might point to the special delphi "result" var and not yours?--Alexander Grotewohlhttp://dcclost.comOn Sep 28, 2019 4:15 PM, Alexander Grotewohl wrote:don't know off the top of my head but does the ord() bit se
t are you also providing other memory
functions, for example to allocate? Is it passing a valid pointer back (one
that eventually gets to memset)?
Just a bit of a brainstorm.. sorry if I've oversimplified or missed the mark
entirely :)
--
Alexander Grotewohl
https://d
same.. lol
--
Alexander Grotewohl
https://dcclost.com
From: fpc-devel on behalf of Michael
Ring via fpc-devel
Sent: Wednesday, April 22, 2020 8:21:55 AM
To: fpc-devel@lists.freepascal.org
Cc: Michael Ring
Subject: Re: [fpc-devel] Possible error in generated
Congrats to the FPC team for being a bit above the rest ;)
--
Alexander Grotewohl
https://dcclost.com
From: fpc-devel on behalf of Bart via
fpc-devel
Sent: Wednesday, April 22, 2020 4:21:03 PM
To: fpc-devel
Cc: Bart
Subject: [fpc-devel] FPC now supports
you're not using the crt unit are you? first because i think it doesn't support
utf8 and second because i think you can cause this by doing "if keypressed.."
without then doing readkey before exit.
--
Alexander Grotewohl
https://dcclost.com
would -a disable optimizations? i guess it'd depend on the intended use of the
listings it generated
--
Alexander Grotewohl
https://dcclost.com
From: fpc-devel on behalf of J. Gareth
Moreton
Sent: Saturday, July 18, 2020 11:09:29 PM
To: FPC developers&
[0;3'+ansi_colors[fg]+';4'+ansi_colors[bg]+'m'+s+#27+'[0m';
writeln(tmp);
end;
begin
PrintColor(2, 0, 'derp');
end.
Easy enough to remember pascal style color numbers.
--
Alexander Grotewohl
https://dcclost.com
From: fpc-
"break" is a windows built-in. explains the first attempt.
--
Alexander Grotewohl
https://dcclost.com
From: fpc-devel on behalf of Tomas
Hajny via fpc-devel
Sent: Friday, November 27, 2020 11:16:26 AM
To: FPC developers' list
Cc: Tomas Hajny
Su
looks like threadid is assigned to getcurrentthreadid in an initthread()
function in thread.inc.
but: getcurrentthreadid looks to be mapped to a changeable thread manager which
is why that might seem weird in the docs..
--
Alexander Grotewohl
https://dcclost.com
32bit on Windows 64-bit uses Wow64.. which has a bit of overhead as an
emulation layer. I believe it's the same one they use for ARM64 too. I can only
guess at how optimally it works performance-wise, but compiling a couple
thousand-liner utils was annoying. You could (at least on the machine I
20 matches
Mail list logo