Re: [fpc-pascal] Floating point question

2024-02-17 Thread wkitty42--- via fpc-pascal
On 2/16/24 9:57 AM, James Richters via fpc-pascal wrote: So you are saying when constant propagation is on, an expression should have a different result than with constant propagation off? The result of math when using constants MUST be the same as the result of identical math using variables

Re: [fpc-pascal] Legitimate use of for and break

2023-06-22 Thread wkitty42--- via fpc-pascal
On 6/21/23 10:54 AM, Steve Litt via fpc-pascal wrote: wkitty42--- via fpc-pascal said on Wed, 21 Jun 2023 08:07:59 -0400 On 6/20/23 10:54 PM, Steve Litt via fpc-pascal wrote: It was a long time ago, but if I remember correctly the Whitesmith Pascal and Turbo Pascal 2 and 3 had either break or

Re: [fpc-pascal] Legitimate use of for and break

2023-06-21 Thread wkitty42--- via fpc-pascal
On 6/20/23 10:54 PM, Steve Litt via fpc-pascal wrote: It was a long time ago, but if I remember correctly the Whitesmith Pascal and Turbo Pascal 2 and 3 had either break or continue. If I remember correctly, I first learned about those when learning C. i'm confused about your statement... first

Re: [fpc-pascal] Legitimate use of for and break

2023-06-18 Thread wkitty42--- via fpc-pascal
On 6/17/23 2:07 PM, Travis Siegel via fpc-pascal wrote: This is interesting, because it's the first time I've ever seen "break" as a valid command in pascal, and I've been using pascal since the mid/late 80s.  All kinds of dialects too, and I've never seen break as a keyword.  C, Python, Perl,

Re: [fpc-pascal] possible bug in blockwrite

2023-03-06 Thread wkitty42--- via fpc-pascal
On 3/5/23 12:54 PM, Travis Siegel via fpc-pascal wrote: [...] This reminded me that I used to do this exact thing under turbo pascal by using blockread/writes, and treating the text file as a binary one. This allowed me to make changes without having to rewrite the whole file, something even ini

Re: [fpc-pascal] A rather good blog post on Object Pascal that I thought you folks might enjoy

2023-01-20 Thread wkitty42--- via fpc-pascal
On 1/19/23 8:48 AM, Liam Proven via fpc-pascal wrote: So when they see something like, say, Lazarus as FOSS, it can amaze them. Which is one reason I wrote this: https://www.theregister.com/2022/12/16/gcc_13_will_support_modula2/ oh! i know a fellow in Australia who might be interested in th

Re: [fpc-pascal] A rather good blog post on Object Pascal that I thought you folks might enjoy

2023-01-19 Thread wkitty42--- via fpc-pascal
On 1/19/23 12:46 AM, Abuy via fpc-pascal wrote: Lazy post. Bad writing. Could be better. i don't know what you were expecting but it reads fine and good to me... thank you Liam for sharing it... also thank you for the FreeDOS interview shared on The Register! :) On 18.01.2023 11:36, Liam P

Re: [fpc-pascal] Working on a new way to educate people about pascal

2022-12-29 Thread wkitty42--- via fpc-pascal
On 12/29/22 6:40 AM, Michael Van Canneyt via fpc-pascal wrote: I also had to learn that there are programmers that have not seen a single SQL statement in their life :) i remember working on an inventory program using FoxBase from before m$ acquired it... i laid out the databases (now called t

Re: [fpc-pascal] Working on a new way to educate people about pascal

2022-12-28 Thread wkitty42--- via fpc-pascal
On 12/27/22 9:37 PM, Anthony Walter via fpc-pascal wrote: "I see there's a timer there.. but what starts it? What happens when it times out? How do I set the amount of time? Why is there even a timer at all? I don't know any of this." James, when you raised these questions are you saying that

Re: [fpc-pascal] iOS

2022-10-06 Thread wkitty42--- via fpc-pascal
On 10/6/22 9:40 AM, Hairy Pixels via fpc-pascal wrote: On Oct 6, 2022, at 7:12 PM, Adriaan van Os via fpc-pascal wrote: I would be pleased to know where I can find the latest iOS parsed headers and possibly a hello program. Also, the cross compilers for iOS don't seem to be available at

Re: [fpc-pascal] Getting Shift key with PTCCRT

2022-09-11 Thread wkitty42--- via fpc-pascal
On 9/10/22 10:57 AM, James Richters wrote: Thanks for the suggestion I think the syntax should be: type myKeyEvent = IPTCKeyEvent; Var myShiftStatus : boolean; myShiftStatus := myKeyEvent.Shift; i told you i probably had the syntax wrong :lol: but I get IPTCKeyEvent not found. I wonder if

Re: [fpc-pascal] Getting Shift key with PTCCRT

2022-09-10 Thread wkitty42--- via fpc-pascal
On 9/9/22 5:54 PM, James Richters via fpc-pascal wrote: I have some key sequences with PTCCRT.READKEY where I use a lower case letter to do one thing and an uppercase to do another, but if the Capslock is on, they do the wrong things. Is there a way I can check the condition of the shift key to

Re: [fpc-pascal] Access Violation When SetLength(DynArray, Value)

2022-09-08 Thread wkitty42--- via fpc-pascal
On 9/8/22 9:54 AM, Anthony Walter via fpc-pascal wrote: Please ignore this post. I fixed the issue. curious minds want to know: what was the fix? -- NOTE: No off-list assistance is given without prior approval. *Please keep mailing list traffic on the list where it belongs!* _

Re: [fpc-pascal] Union followed by Property does not compile !

2022-08-03 Thread wkitty42--- via fpc-pascal
On 8/2/22 5:12 AM, Michael Van Canneyt via fpc-pascal wrote: The variant part of a record must always come last. FWIW: is this documented somewhere easily found? -- NOTE: No off-list assistance is given without prior approval. *Please keep mailing list traffic on the list where it belo

Re: [fpc-pascal] Improved FPC JSON-RPC support

2021-12-29 Thread wkitty42--- via fpc-pascal
On 12/29/21 6:29 AM, Graeme Geldenhuys via fpc-pascal wrote: On 2021-12-29 11:22, wkitty42--- via fpc-pascal wrote: i'm sorry... what is WST? googling https://wiki.lazarus.freepascal.org/Web_Service_Toolkit thank you! :) -- NOTE: No off-list assistance is given without prior app

Re: [fpc-pascal] Improved FPC JSON-RPC support

2021-12-29 Thread wkitty42--- via fpc-pascal
On 12/29/21 4:54 AM, Michael Van Canneyt via fpc-pascal wrote: Translated to RPC: if you want speed, don't use HTTP or JSON. WST offers a binary protocol and plain TCP channel, it's bound to be much faster. i'm sorry... what is WST? googling for "wst binary protocol tcp ip channel" doesn't tur

Re: [fpc-pascal] Getting Last User Input reliably

2021-12-06 Thread wkitty42--- via fpc-pascal
On 12/5/21 11:10 AM, James Richters via fpc-pascal wrote: So the only thing I need to consider is times of longer than 49.7 days without user input... because if it was exactly 50 days, it would look like 0.3 days as the first rollover would be forgotten. To take care of this I can just check it

Re: [fpc-pascal] Writing Pascal Physics and Vectors

2021-10-16 Thread wkitty42--- via fpc-pascal
ummm... the source code is on the linked page ;) On 10/16/21 2:58 AM, Darius Blaszyk via fpc-pascal wrote: Can you put the link up to the source code please? On 16 Oct 2021, at 00:27, Anthony Walter via fpc-pascal wrote: [...] https://www.getlazarus.org/videos/physics/collisions/ Source co

Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-30 Thread wkitty42--- via fpc-pascal
On 8/30/21 8:52 AM, geneb via fpc-pascal wrote: [*] For those not aware of him, Jeff Duntemann was a huge figure "back in the day" in Turbo/Borland Pascal circles.  His books are phenomenal. i have and still use several of his books... i think the first one we got was "Complete Turbo Pascal" -

Re: [fpc-pascal] How to get fpc and lazarus sources when svn has shut down?

2021-08-12 Thread wkitty42--- via fpc-pascal
On 8/11/21 4:22 PM, Michael Van Canneyt via fpc-pascal wrote: On Wed, 11 Aug 2021, Bo Berglund via fpc-pascal wrote: echo "Downloading version $FPCVER of FPC" cd "$FPCDIR" svn co https://svn.freepascal.org/svn/fpc/tags/$FPCTAG/ $FPCVER # Get sources git clone https://gitlab.com/freepascal.org/

Re: [fpc-pascal] Will the size of an executable depend on the uses clause

2021-06-19 Thread wkitty42--- via fpc-pascal
On 6/19/21 9:40 AM, Bo Berglund via fpc-pascal wrote: Strange name of a function, though, is that needed? idk why the specific name was selected but you need some easy way to add leading zeros if you want them... some might complain about the conversion from integer to string, though... i've

Re: [fpc-pascal] FTP support gone - switch to HTTP ?

2021-05-17 Thread wkitty42--- via fpc-pascal
On 5/17/21 9:57 AM, Michael Van Canneyt via fpc-pascal wrote: I know that Firefox will follow suit really soon (if they haven't already). it has... in version 88.0.0 IIRC... -- NOTE: No off-list assistance is given without prior approval. *Please keep mailing list traffic on the list w

Re: [fpc-pascal] Dependency of OpenSSL 1.0.2 still in FPC 3.2.0 on some platforms?

2021-05-12 Thread wkitty42--- via fpc-pascal
On 5/11/21 5:35 PM, Bo Berglund via fpc-pascal wrote: Of course, but as I said the basic mail sending is working I just have a hard time understanding how to add file attachments. It would not have worked unless the proper uses are added to the pas file and also the laz_synapse package set as req

Re: [fpc-pascal] Avoiding File conflicts

2021-01-05 Thread wkitty42--- via fpc-pascal
On 1/4/21 11:06 AM, Bart via fpc-pascal wrote: On Mon, Jan 4, 2021 at 3:19 AM James Richters via fpc-pascal wrote: I suspect that I happen to see the file is there and try to read it before the program that created the file is done writing it. What is the proper way to detect the file is in u

Re: [fpc-pascal] Selecting Records with a variable

2020-12-20 Thread wkitty42--- via fpc-pascal
On 12/19/20 10:02 PM, James Richters wrote: No, this is just a simplified example.. ok... The procedure will be working with dozens of records, so I need a way to call the procedure and specify which element of all the records to use... it will not be called for every element. in that case, t

Re: [fpc-pascal] Selecting Records with a variable

2020-12-19 Thread wkitty42--- via fpc-pascal
On 12/19/20 7:16 PM, James Richters via fpc-pascal wrote: Is there some syntax that would work to select the correct record based on the variable so I can avoid having all the If statements? do you need to show only one at a time or are you looping through and printing all of them each time?

Re: [fpc-pascal] Search path order for fpc.cfg

2020-04-12 Thread wkitty42
On 4/12/20 10:09 AM, wkitt...@windstream.net wrote: PPS: Bo, if you reply, please include the above PS when you reply to the list so that the list manager(s) can see this and maybe they can/will whitelist the synacor servers... i've had several postings get blocked in recent days because of thi

Re: [fpc-pascal] Search path order for fpc.cfg

2020-04-12 Thread wkitty42
On 4/12/20 8:26 AM, Bo Berglund via fpc-pascal wrote: I am used to *not* hide files anytime both on Windows (where I always configure the explorer to show hidden files) and on Linux where I always use an ls -la alias ll in order not to hide files. Never understood the reason for hiding stuff...

Re: [fpc-pascal] Search path order for fpc.cfg

2020-04-12 Thread wkitty42
On 4/12/20 7:55 AM, Michael Van Canneyt wrote: All your OOTB problems can be solved without a single line of code change in the compiler. Just create a script that people should use to compile instead of directly using the 'fpc' command, and specify the config  file in the script, and any other

Re: [fpc-pascal] Search path order for fpc.cfg

2020-04-11 Thread wkitty42
On 4/11/20 10:16 AM, Jonas Maebe wrote: On 11/04/2020 15:58, wkitt...@windstream.net wrote: Does fpc accept relative path for -Fu in the fpc.cfg config file, something like: -Fu../units/$fpctarget -Fu../units/$fpctarget/* -Fu../units/$fpctarget/rtl doesn't the 2nd one already cover the 3rd on

Re: [fpc-pascal] Search path order for fpc.cfg

2020-04-11 Thread wkitty42
On 4/10/20 4:44 PM, fredvs via fpc-pascal wrote: Does fpc accept relative path for -Fu in the fpc.cfg config file, something like: -Fu../units/$fpctarget -Fu../units/$fpctarget/* -Fu../units/$fpctarget/rtl doesn't the 2nd one already cover the 3rd one? -- NOTE: No off-list assistance is gi

Re: [fpc-pascal] Range check error warning.

2020-03-25 Thread wkitty42
On 3/25/20 5:06 PM, Bart via fpc-pascal wrote: On Wed, Mar 25, 2020 at 7:48 PM wrote: [wargames] seems like the winning move is to not play the game. [/wargames] LUL LUL ?? What does that stand for? it is the LOL emoticon with a beard... i've gotten to where i use it all the time instead

Re: [fpc-pascal] Range check error warning.

2020-03-25 Thread wkitty42
On 3/25/20 2:17 PM, Sven Barth via fpc-pascal wrote: wkitt...@windstream.net schrieb am Mi., 25. März 2020, 18:47: hummm... ok, so how to you get a constant to be a byte and storing 7 for the decimal value? The compiler normally uses the smallest possible type that can represent the value.

Re: [fpc-pascal] Range check error warning.

2020-03-25 Thread wkitty42
On 3/24/20 6:58 PM, Sven Barth via fpc-pascal wrote: wkitt...@windstream.net schrieb am Di., 24. März 2020, 18:37: you should figure out why typed constants are not being allowed/used in your setup... Typed constants can not be used to initialize constants. hummm... ok, so how to you get a

Re: [fpc-pascal] Range check error warning.

2020-03-24 Thread wkitty42
On 3/24/20 12:40 PM, fredvs via fpc-pascal wrote: Hello Alexander. I did: const foldhiddenbit : byte = 7; // line 896 foldhiddenmask : byte = 1 shl foldhiddenbit; // line 897 currentfoldhiddenbit : byte = 6; // line 898 currentfoldhiddenmask : byte = 1 shl currentfoldhiddenbit;

Re: [fpc-pascal] Range check error warning.

2020-03-24 Thread wkitty42
On 3/23/20 8:08 PM, fredvs via fpc-pascal wrote: const foldhiddenbit = 7; foldhiddenmask = 1 shl foldhiddenbit; currentfoldhiddenbit = 6; currentfoldhiddenmask = 1 shl currentfoldhiddenbit; foldlevelmask = byte(not (foldhiddenmask or currentfoldhiddenmask)); >Here the warning I

Re: [fpc-pascal] Killing the mail list

2020-03-18 Thread wkitty42
On 3/17/20 11:51 PM, Ryan Joseph via fpc-pascal wrote: On Mar 18, 2020, at 1:31 AM, Kevin Monceaux wrote: It's 2020 and the mail list is starting to really show its age. With age comes wisdom. No need to discuss this further, everyone loves the mail list. I'll try using the forums inst

Re: [fpc-pascal] New Warnings with fpc >= 3.2.0 (fredvs)

2020-03-14 Thread wkitty42
On 3/14/20 10:18 AM, fredvs via fpc-pascal wrote: Yes, that is the main problem. If you do it the "logical" way, placing at first without initialization, when ord(kind) is used in code, because the order has changed, lot of code must be re-written. i don't see a problem with that... only some t

Re: [fpc-pascal] New Warnings with fpc >= 3.2.0

2020-03-11 Thread wkitty42
On 3/11/20 11:35 AM, fredvs via fpc-pascal wrote: f (kind in tabulatorkindty) then Yes, I like it! But, sadly, the compiler no. "Error: Operator is not overloaded"... that's weird... i thought that construct was standard for arrays and similar... hummm... -- NOTE: No off-list assistan

Re: [fpc-pascal] New Warnings with fpc >= 3.2.0

2020-03-11 Thread wkitty42
On 3/11/20 7:51 AM, fredvs via fpc-pascal wrote: if (kind = tabulatorkindty(tak_lef)) or (kind = tabulatorkindty(tak_right)) or (kind = tabulatorkindty(tak_centered)) or (kind = tabulatorkindty(tak_decimal)) then But I would prefer a shorter way, mainly if the array is big. admittedly i don't

Re: [fpc-pascal] Cannot find system type "__m64"

2020-03-06 Thread wkitty42
On 3/6/20 11:06 AM, Sven Barth via fpc-pascal wrote: mailto:wkitt...@windstream.net>> schrieb am Fr., 6. März 2020, 15:51: On 3/6/20 9:17 AM, Ryan Joseph via fpc-pascal wrote: > Ok, I got this reply finally so maybe something else went wrong. I'm tempting > to try another account

Re: [fpc-pascal] Cannot find system type "__m64"

2020-03-06 Thread wkitty42
On 3/6/20 9:17 AM, Ryan Joseph via fpc-pascal wrote: Ok, I got this reply finally so maybe something else went wrong. I'm tempting to try another account with some free email service because Gmail never shows my initial post, which is annoying. i've written before, several years back, about gm

Re: [fpc-pascal] Writing to a drive which may be spun down

2019-11-21 Thread wkitty42
On 11/21/19 1:16 AM, Brian wrote: My question: Is there a standard method for handling this situation, i.e. making sure that a drive has not spun down, or is it just a case of writing a wrapper round the write function and handling the 'No such file' error with a wait and a retry? why not just

Re: [fpc-pascal] fpbind ipv6 version

2019-10-27 Thread wkitty42
On 10/27/19 6:23 PM, Sven Barth via fpc-pascal wrote: schrieb am So., 27. Okt. 2019, 19:32: On 10/27/19 11:56 AM, Alexander Grotewohl wrote: > const >      IN6ADDR_ANY: array[0..3] of longint = (0, 0, 0, 0); well, that certainly can't work... the IPv6 format is max 8 four ch

Re: [fpc-pascal] fpbind ipv6 version

2019-10-27 Thread wkitty42
On 10/27/19 11:56 AM, Alexander Grotewohl wrote: I sent this direct to him on accident but I don't think it worked anyways (bounced?) Just some test code so not very pretty. It works, but IN6ADDR_ANY was missing and I'm not familiar enough with ipv6 to know how it might be defined in other la

Re: [fpc-pascal] Illegal counter variable?

2019-09-11 Thread wkitty42
On 9/11/19 1:06 AM, Ralf Quint wrote: On 9/10/2019 4:26 PM, wkitt...@windstream.net wrote: On 9/9/19 10:11 AM, James Richters wrote: Pascal doesn't have things like step... hunh??? i don't think that's right but i'm just catching up after several 10+ hours days of $job... i know that i've

Re: [fpc-pascal] Illegal counter variable?

2019-09-10 Thread wkitty42
On 9/9/19 10:11 AM, James Richters wrote: Pascal doesn't have things like step... hunh??? i don't think that's right but i'm just catching up after several 10+ hours days of $job... i know that i've written code in the past that did use something to step X numbers per run through the look a

Re: [fpc-pascal] Compatibility problems with fpc > 3.3.1 rev 42375

2019-09-01 Thread wkitty42
On 8/31/19 11:15 AM, fredvs wrote: And rev 42375 was the guilty, before that rev, all is working ok. Do you get a compile error, or do the files no longer read/write properly ? No, no compile error, it is only he files no longer read/write properly. sounds like you need a copy of the files

Re: [fpc-pascal] USB Human Interface Devices

2019-08-19 Thread wkitty42
On 8/19/19 4:24 AM, James Richters wrote: I've been reading about libusb here: https://www.cs.unm.edu/~hjelmn/libusb_hotplug_api/group__syncio.html some things I just don't really understand, I'm hoping someone can explain: The wValue, wIndex and wLength fields values should be given in host-en

Re: [fpc-pascal] += property bug?

2019-08-14 Thread wkitty42
On 8/14/19 10:54 AM, Ryan Joseph wrote: Seriously? why is i := i + 1 better than i += 1 ? just more typing for such a simple operation. All languages I use have adopted this syntax and for good reason. good reason?? because someone is too lazy to type 4 more characters? yes, i'm counting the r

Re: [fpc-pascal] Warning: Symbol "faHidden" is not portable

2019-07-20 Thread wkitty42
On 7/19/19 1:58 PM, geneb wrote: On Fri, 19 Jul 2019, James Richters wrote: what OS? some OSes do not have hidden attribute like DOS and winwhatever... for example, on most *nix, they use dot files which are Both MS-DOS and Windows have hidden file attribute bits. right... i was specifical

Re: [fpc-pascal] Warning: Symbol "faHidden" is not portable

2019-07-19 Thread wkitty42
On 7/19/19 7:45 AM, James Richters wrote: What does 'Warning: Symbol "faHidden" is not portable' mean exactly? I’m using it with FindFirst and FindNext, I'm just wondering if there is a better way of getting directory information that includes hidden and excludes hidden files in a better way t

Re: [fpc-pascal] http://wiki.freepascal.org/ web site is totally blank

2019-06-07 Thread wkitty42
On 6/7/19 11:05 AM, Dennis wrote: DaWorm wrote: There was a thread yesterday about issues with the servers.  This may be related. The web site is still blank. it'll continue to be ""blank"" until they get everything moved to a new server, too... -- NOTE: No off-list assistance is give

Re: [fpc-pascal] Detecting console close with red X on windows

2019-05-19 Thread wkitty42
On 5/19/19 8:29 AM, Kevin Lyda wrote: At least on Unix systems I'd assume the answer was to write a signal handler: https://www.freepascal.org/docs-html/rtl/baseunix/fpsigaction.html IME, that should always be done... especially in the *nix world... you never know where termination may come f

Re: [fpc-pascal] XML - Indent, text content, special char

2019-04-30 Thread wkitty42
On 4/30/19 9:36 AM, Bernd Oppolzer wrote: Am 30.04.2019 um 02:45 schrieb wkitt...@windstream.net: On 4/29/19 1:27 PM, Gabor Boros wrote: Is this not a bug? Lost of formatting is not disturb me but text between > and < is the data/text content of a node. are you saying that you are trying to u

Re: [fpc-pascal] XML - Indent, text content, special char

2019-04-29 Thread wkitty42
On 4/29/19 1:27 PM, Gabor Boros wrote: Is this not a bug? Lost of formatting is not disturb me but text between > and < is the data/text content of a node. are you saying that you are trying to use fixed-width fields that are space-padded in XML files??? -- NOTE: No off-list assistance is

Re: [fpc-pascal] mode switch madness

2019-04-14 Thread wkitty42
On 4/14/19 9:08 AM, Anthony Walter wrote: Someone said: "You can do a {$i mysettings.inc}" I give that a +1 FWIW: all of the delphi code that i've worked with trying to port to FPC has had this... at least one had an include file that IFDEF'd its way through like 4 or 5 other pascal compil

Re: [fpc-pascal] Can FPC optimize: if (s[i]='a') or ...

2019-04-14 Thread wkitty42
On 4/14/19 7:28 AM, Rainer Stratmann wrote: On Samstag, 13. April 2019 22:30:55 CEST Alexey Tor. wrote: E.g. i have a loop which test each s[i] char for several cases: 'a', 'b', 'c'. for i:= 1 to length(s) do if (s[i]='a') or (s[i]='b') or (s[i]='c') then ... Can FPC optimize it so it only re

Re: [fpc-pascal] Anyone uses Synapse trunk version instead of the official 2012 release 40?

2019-02-26 Thread wkitty42
On 2/25/19 9:20 AM, Dennis wrote: I noticed there are quite many changes in the sourceforge.net project especially in terms of SSL fixes. I want to use the trunk but worry that it is not stable yet. Anyone uses the 2018-08-22 trunk version stably for a while? I tried asking it on the synapse e

Re: [fpc-pascal] blocked on fpc-devel

2019-02-18 Thread wkitty42
On 2/18/19 1:09 PM, Bo Berglund wrote: On Mon, 18 Feb 2019 10:33:52 -0500, wkitt...@windstream.net wrote: FWIW: gmail works fine but you don't get your posts coming back to you... they specifically filter them out and there's no way around that that i've found... it is especially desirable to g

Re: [fpc-pascal] blocked on fpc-devel

2019-02-18 Thread wkitty42
On 2/17/19 10:30 AM, Ryan Joseph wrote: On Feb 17, 2019, at 10:24 AM, Jonas Maebe wrote: From what I can tell, the smtp servers you use do not handle greylisting correctly (http://projects.puremagic.com/greylisting/ ). Thanks Jonas, I’m going to try changing my smtp server to gmail then, sta

Re: [fpc-pascal] CLI argument parsers

2019-01-15 Thread wkitty42
On 1/15/19 2:02 PM, Martok wrote: Am 14.01.2019 um 18:05 schrieb Bo Berglund: By changing the subject of an existing (very old thread) and post new content you have screwed up the message handling of threads so this conversation now gets stuffed into the "Resource compilation" thread dating back

Re: [fpc-pascal] Constants in generics

2019-01-05 Thread wkitty42
On 1/5/19 3:18 AM, Sven Barth via fpc-pascal wrote: Am Fr., 4. Jan. 2019, 21:11 hat geschrieben: On 1/4/19 1:47 PM, Ryan Joseph wrote: > Who designed the generics btw? unless i'm highly mistaken, you've been talking to them... they're quoted above, even ;) I didn't design the

Re: [fpc-pascal] Constants in generics

2019-01-04 Thread wkitty42
On 1/4/19 1:47 PM, Ryan Joseph wrote: On Jan 3, 2019, at 11:11 PM, Sven Barth via fpc-pascal wrote: Fair enough. In that case support for constants in generics will have to wait as well. 🤷‍ Who designed the generics btw? unless i'm highly mistaken, you've been talking to them... they'r

Re: [fpc-pascal] inlining functions depending on implementation only functions

2018-12-29 Thread wkitty42
On 12/29/18 9:16 AM, Benito van der Zander wrote: Fpc 3.1 did not show any warning in this case (although now that I investigate it, fpc 3.1 also did not seem to inline it despite not showing the warning) i think, but am not totally sure, that the addition of the warning is a recently added fe

Re: [fpc-pascal] fphttpclient.post

2018-11-01 Thread wkitty42
On 10/31/18 6:43 PM, Ched wrote: As some data which travel the world encoded in clear in the url of the get are sometime private (connecting password for example), I'd like to use the post method which crypts the data when using https. ummm... if you are using https, GETs are ""crypted"" as ar

Re: [fpc-pascal] Unbuffering I/O

2018-08-29 Thread wkitty42
On 08/29/2018 11:49 AM, Henry Vermaak wrote: Otherwise you'll have to Flush() them manually, which is a pain. really? i wrote a wrapper for write and writeln that simply calls them and then does a flush()... nothing painful other than using mywrite() and mywriteln() or similar ;) -- NOTE:

Re: [fpc-pascal] Unbuffering I/O

2018-08-29 Thread wkitty42
On 08/29/2018 11:01 AM, Mark Morgan Lloyd wrote: Is there an equivalent for Pascal, or should I be using something like fpSync(stdout) at opportune times? flush(); i use it all the time on my programs that write to the logs... i hate having a crash and be missing some log output because it w

Re: [fpc-pascal] A new fpc desirable feature

2018-07-17 Thread wkitty42
On 07/17/2018 11:56 AM, Giuliano Colla wrote: A problem would be to determine the appropriate amount of politeness accepted. > Maybe a compiler option, such as -P0 (almost rude) to -P3 (extremely polite)? Or up to -P7 for an increased granularity? go the other way... a P9 is a weapon... to carr

Re: [fpc-pascal] FPC_PCHAR_LENGTH dog slow

2018-07-03 Thread wkitty42
On 07/03/2018 01:44 PM, leledumbo via fpc-pascal wrote: i think i'm still waiting for the string "length byte" becoming a "length word" or possibly a "length long" so the speed of pascal strings can be reacquired -=B-) > Ansi and any other dynamic strings already have length longint that allows

Re: [fpc-pascal] Loss of precision when using math.Max()

2018-07-03 Thread wkitty42
On 07/03/2018 12:41 PM, Ralf Quint wrote: And no "new language" can absolve the programmer from properly doing their work. Everything else is just a quick hack, not a properly designed program... Welcome Back, Ralf! we've missed you O:) O:) O:) -- NOTE: No off-list assistance is given wit

Re: [fpc-pascal] FPC_PCHAR_LENGTH dog slow

2018-07-03 Thread wkitty42
On 07/03/2018 12:01 PM, Tomas Hajny wrote: On Tue, July 3, 2018 17:15, Ryan Joseph wrote: Why is that so crazy slow? Does it need to iterate the entire length of the string to know it’s length? > Yes, that's indeed the difference between Pascal strings (Short/Ansi/Wide/UnicodeString) and C-like

Re: [fpc-pascal] Loss of precision when using math.Max()

2018-07-03 Thread wkitty42
On 07/03/2018 03:26 AM, C Western wrote: On 02/07/18 23:13, Wolf wrote: Who is shooting whom in the foot? Wolf If you compile with range checks on, you get a runtime error. why are so many folks NOT developing with all the checks (range, heap, stack, etc) turned ON and then turning them

Re: [fpc-pascal] fpdoc error with XML parsing

2018-07-03 Thread wkitty42
On 07/02/2018 07:07 PM, Graeme Geldenhuys wrote: From that error message it doesn't seem to like the "--macro" part inside the xml comment. It seems fpdoc wants to process that "--" as the end of the comment. this was where i was headed... if the multi-line comments work properly, perhaps it i

Re: [fpc-pascal] fpdoc error with XML parsing

2018-07-02 Thread wkitty42
On 07/02/2018 04:11 PM, Graeme Geldenhuys wrote: What is illegal about this fpdoc XML project file? fpdoc from FPC 3.1.1 keeps giving an exception error reading the XML document. The issue it has is with the XML Comment I have on lines 2-5 (ignore the line wrapping caused by my email client). If

Re: [fpc-pascal] TFPGObjectList error

2018-07-01 Thread wkitty42
On 07/01/2018 03:13 PM, Jim Lee wrote: That is exactly the documentation I'm talking about.  I've seen all of them.  I got to them via the wiki, so I suppose I should have said "The wiki, and documentation linked to from there". oh!! ok, well... i think the docs.var one i pointed out above is

Re: [fpc-pascal] TFPGObjectList error

2018-07-01 Thread wkitty42
On 07/01/2018 02:38 PM, Jim Lee wrote: The most common scenario for me is this: "I wonder if fpc (or Lazarus) already has ". Go to the wiki and browse haphazardly, looking for [...] that may be part of your problem... you're looking in a wiki instead of a more proper place... all the FPC docs

Re: [fpc-pascal] round(2.5)=2

2018-06-14 Thread wkitty42
On 06/13/2018 04:17 AM, Michael Schnell wrote: On 12.06.2018 23:12, Klaus Hartnegg wrote: No, it does not depend on the hardware, but on the setting of $N. Turbo Pascal with $N+ rounds like FreePascal. But the default is $N-. In this mode Turbo Pascal always rounds up. What exactly does $N

Re: [fpc-pascal] C# stackalloc

2018-06-02 Thread wkitty42
On 06/02/2018 02:01 AM, Ryan Joseph wrote: So it looks like my idea wasn’t that crazy after all. ;) just because more than one person comes up with the same or similar idea does not mean that it is not crazy or worse ;) ;) ;) -- NOTE: No off-list assistance is given without prior approval

Re: [fpc-pascal] Next language feature for pas2js...

2018-05-01 Thread wkitty42
On 05/01/2018 07:09 AM, Ryan Joseph wrote: In PHP I always just load the file into string and loop over it line by line using regex to cut out the parts I need. I like it because it’s so easy to write and gets the job done. What ever I would make it Pascal would be 10x larger probably. FWIW: yo

Re: [fpc-pascal] Using constants instead of comments

2018-04-18 Thread wkitty42
On 04/17/2018 11:06 PM, James Richters wrote: I have a whole section of diagnostic writeln's in a program, and it's tedious to comment them all out/in as needed. I'm curious if doing something like what's wrong with traditional IFDEF?? use something like this... {$IFDEF DEBUG} writeln ('bl

Re: [fpc-pascal] 0030208: "not" doesn't work properly on bitpacked booleans

2018-04-05 Thread wkitty42
On 04/05/2018 02:11 PM, Luca Olivetti wrote: El 03/04/18 a les 13:14, Luca Olivetti ha escrit: I was going to report a bug but I see it's already fixed https://bugs.freepascal.org/view.php?id=30208 however it's still there in 3.0.4, released a year and a half later than the fix. Will the fix be

Re: [fpc-pascal] Lazarus Mailing list down?

2018-04-03 Thread wkitty42
On 04/03/2018 07:00 AM, Torsten Bonde Christiansen wrote: Hi All. I haven't gotten any mails on the Lazarus mailing list since 31/03-2018 - and the two mails I sent today doesn't seem to have gone through. this one seems to have made the trip just fine... Kind regards, Torsten. __

Re: [fpc-pascal] uses in 'filename'

2018-02-22 Thread wkitty42
On 02/22/2018 09:49 AM, Michael Van Canneyt wrote: On Thu, 22 Feb 2018, Mattias Gaertner wrote: On Thu, 22 Feb 2018 12:48:21 +0100 (CET) Michael Van Canneyt wrote: First of all, normally it won't work either way, because you must use "unit foo;" and "unit bar;" in the files. >> No, I can use

Re: [fpc-pascal] Scoped enums and inferred types

2018-02-21 Thread wkitty42
On 02/21/2018 05:16 AM, Sven Barth via fpc-pascal wrote: I simply rely on my IDE (Lazarus, Visual Studio) to complete long identifier names for me so that I don't have to. *shrugs* exactly my thoughts, too... -- NOTE: No off-list assistance is given without prior approval. *Please k

Re: [fpc-pascal] Freepascal CLI library

2018-01-14 Thread wkitty42
On 01/14/2018 01:15 PM, Bart wrote: On Sun, Jan 14, 2018 at 6:00 PM, wrote: really... i think most folks have a general YesNo routine that returns some value which they then use to determine which way the code flows... I used to have a general Prompt(Question: String; Allowed: TCharSet; Def

Re: [fpc-pascal] Freepascal CLI library

2018-01-14 Thread wkitty42
On 01/13/2018 07:28 PM, Darius Blaszyk wrote: not specific to CLI apps but are you, perhaps, thinking of CheckOptions and HasOption? No I do not look for commandline handling. Rather a CLI interaction library. Which allows to interact with the application during runtime. Similar to how sphin

Re: [fpc-pascal] Freepascal CLI library

2018-01-13 Thread wkitty42
On 01/13/2018 04:53 PM, Darius Blaszyk wrote: Is there a library available that can handle this kind of input from the command line? Though not difficult to write something from scratch (I already started on it), I feel like this has to be available already. Anyone has a tip for me? not specifi

Re: [fpc-pascal] Again heaptrc dump interpretation

2017-12-10 Thread wkitty42
On 12/10/2017 03:45 PM, denisgolovan wrote: True heap size : 7276691456 Should be : 7276691456 IIUC, if these two do not match, you might have a memory leak... keep up also with your memory blocks allocated and freed... -- NOTE: No off-list assistance is given without prior approval.

Re: [fpc-pascal] FPC 3.0.4 released!

2017-12-04 Thread wkitty42
On 12/03/2017 01:48 PM, pasc...@piments.com wrote: How do I get off this list ?! the same way you got on it... follow the mailman link attached to every post on th elist, sign in and turn the list off for you... ___ fpc-pascal maillist  -  fpc-pas

Re: [fpc-pascal] FPC vs. Lazarus regarding some units...

2017-10-29 Thread wkitty42
On 10/29/2017 07:07 AM, Juha Manninen wrote: On Sun, Oct 29, 2017 at 2:53 AM, Cleverson Casarin Uliana wrote: Why some units like the mentioned MMSystem are delivered with Lazarus but not with FPC? MMSystem is not delivered with Lazarus. I don't know what you are writing about. does the de

Re: [fpc-pascal] CRT unit and Windows' terminal

2017-10-14 Thread wkitty42
for what ever reason, your code arrived here looking to be in UTF8 or ISO-8859-1 format... lazarus loaded is as ASCII but the box characters in the code were obviously not the ASCII ones you are speaking of (eg: ALT-201)... i tried to convert it to UTF8 in lazarus but the look was still the s

Re: [fpc-pascal] Syntax to select constant or variable with function call

2017-09-24 Thread wkitty42
On 09/24/2017 01:55 AM, Michael Van Canneyt wrote: Then define function Find_Color(anArray :PVGA256Array; r ,g ,b : Word) : Byte;  Var   Dist,closest:Double;   i,bestchoice:Byte; begin    Closest:=20;    For i:= 0 to 255 do   Begin Dist :=  ((R-AnArray^[i].R))*((R-AnArray

Re: [fpc-pascal] Using Serial in a TCP/RS232 gateway, how to set buffer sizes?

2017-09-08 Thread wkitty42
On 09/08/2017 04:34 AM, Bo Berglund wrote: Next I unchecked the checkbox before doing the long transfer, and lo-and-behold(!) now there are no losses anymore! So the action of writing text to the listbox in the LogHex function was actually causing the application to lose incoming serial data!

Re: [fpc-pascal] sending new parameters to existing instance

2017-08-27 Thread wkitty42
On 08/27/2017 12:18 PM, James Richters wrote: I have a windows console application I wrote with Freepascal.I can send it a command line parameter for a file to use have it working so if I just double click on the file I wish to open with my program, it launches and opens it. I am wondering

Re: [fpc-pascal] Multi-OS fp.ini and fp.cfg ?

2017-08-16 Thread wkitty42
On 08/16/2017 04:27 PM, Ched wrote: Dear FPCers, Would it be not too hard to make fp.ini and fp.cfg containing sections dedicated to one OS (bot read by others, but kept untouched) ? I'm working on my source codes both under Linux and under Windows ; when switching from one to the other, the

Re: [fpc-pascal] Defining sonames?

2017-08-15 Thread wkitty42
On 08/14/2017 09:19 AM, Fred van Stappen wrote: A concrete example. A Linux/FreeBSD fpc release was compiled using the pascal headers for libX11.so.6 and using symlink libX11.so >> libX11.so.6.0.8. This release was installed on a system (with libX11-dev too to make it work). ok, that's fine

Re: [fpc-pascal] FPDoc - how to document overloaded functions?

2017-07-13 Thread wkitty42
On 07/13/2017 06:30 AM, Michael Van Canneyt wrote: I'm not sure I understand what you're trying to achieve ? @graeme: maybe you could mock up what you are wanting/expecting from this particular situation? that way we (TINW) could compare the two and see the difference?? -- NOTE: No off-l

Re: [fpc-pascal] ptccrt missing keys

2017-06-21 Thread wkitty42
On 06/21/2017 12:31 PM, James Richters wrote: There is one thing I am wondering about, I'm not sure if it's something that could be (or maybe already is) addressed with pctcrt. That is the typmatic keyboard rate. I wish it to be much faster than it is. I seem to remember that on DOS systems t

Re: [fpc-pascal] X64 only - Can't determine which overloaded function to call

2017-06-15 Thread wkitty42
On 06/15/2017 08:20 AM, James Richters wrote: Strangely: LY:=Round(30.1-(BYA+SYA)); Also compiles fine with both Win32 and Win64 have you tried 30.0 as well? it looks like something needs a real number for this on the 64bit side... -- NOTE: No off-list assistance is given without prior ap

  1   2   >