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
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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;
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
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.
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
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
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
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
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...
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
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?
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
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
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
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
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
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/
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" -
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
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
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
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
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
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!*
_
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
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
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
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
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
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
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
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
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,
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
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
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
On 11/29/24 4:58 PM, James Richters via fpc-pascal wrote:
Thought this should be a separate thread... sorry it if ends up confusing
things.
ummm... so you know: changing the subject does not create a new thread...
posting a new message _/*without*/_ using (one of) the "Reply" buttons does...
On 12/2/24 10:39 AM, Wayne Sherman via fpc-pascal wrote:
On Mon, Dec 2, 2024 at 4:16 AM wkitty42--- wrote:
TLDR; i'm looking for a (small?) Pascal library to handle lz4 data blocks
contained inside a data file...
These use the lz4 library with pascal bindings (.a and.o files which
c
TLDR; i'm looking for a (small?) Pascal library to handle lz4 data blocks
contained inside a data file...
i've looked for information on how to create and open blocks of lz4 compressed
data in data files... i haven't found much and i'm not sure i'm searching
properly... asking uncle google
101 - 173 of 173 matches
Mail list logo