Re: [fpc-devel] Multiple variable initialization

2018-03-24 Thread Alexander Grotewohl
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

Re: [fpc-devel] Multiple variable initialization - YES

2018-04-02 Thread Alexander Grotewohl
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)

Re: [fpc-devel] Wrong docs: not initialized global variables

2018-04-04 Thread Alexander Grotewohl
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

Re: [fpc-devel] Dangerous optimization in CASE..OF

2018-04-21 Thread Alexander Grotewohl
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

Re: [fpc-devel] How do I go about volunteering as a "release builder", so that we can get rid of the objectively untrue, misleadingly worded "There is no native compiler available for x86_64 Win64. Yo

2018-11-04 Thread Alexander Grotewohl
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

Re: [fpc-devel] When will the next version of FPC be released?

2019-05-31 Thread Alexander Grotewohl
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

Re: [fpc-devel] Test

2019-06-15 Thread Alexander Grotewohl
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

Re: [fpc-devel] Object upgrades (new)

2019-06-16 Thread Alexander Grotewohl
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

Re: [fpc-devel] Case else allows multiple statements

2019-09-19 Thread Alexander Grotewohl
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

Re: [fpc-devel] Windows 32bit - FPC 3.0.4 Gets an Error - but not on Linux or Mac...

2019-09-28 Thread Alexander Grotewohl
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

Re: [fpc-devel] Windows 32bit - FPC 3.0.4 Gets an Error - but not on Linux or Mac...

2019-09-28 Thread Alexander Grotewohl
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

Re: [fpc-devel] Possible error in generated code for arm?

2020-04-21 Thread Alexander Grotewohl
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

Re: [fpc-devel] Possible error in generated code for arm?

2020-04-22 Thread Alexander Grotewohl
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

Re: [fpc-devel] FPC now supports Windows 33-bit

2020-04-22 Thread Alexander Grotewohl
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

Re: [fpc-devel] Windows Console App

2020-04-26 Thread Alexander Grotewohl
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

Re: [fpc-devel] Binary size discrepancy with -a

2020-07-18 Thread Alexander Grotewohl
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&

Re: [fpc-devel] Compiler message colour scheme

2020-11-22 Thread Alexander Grotewohl via fpc-devel
[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-

Re: [fpc-devel] Might need some help with this one

2020-11-27 Thread Alexander Grotewohl via fpc-devel
"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

Re: [fpc-devel] function GetCurrentThreadId vs variable ThreadID

2021-03-28 Thread Alexander Grotewohl via fpc-devel
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

Re: [fpc-devel] I've asked this before, but perhaps I wasn't specific enough that time: what do I *personally*, specifically need to do to ensure that a native Windows 64-bit build winds up on the FPC

2022-01-13 Thread Alexander Grotewohl via fpc-devel
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