Re: [fpc-pascal] Pass open array to static array?

2020-03-15 Thread Ryan Joseph via fpc-pascal
Ok, that makes sense now. Dynamic arrays can't be passed to static arrays. I remember when I tried to make aligned dynamic arrays I got to look around in the code and it seems plausible you could just make a memcpy call in the RTL for dynamic arrays being passed to static arrays. Seems deceptively

Re: [fpc-pascal] Killing the mail list

2020-03-15 Thread Ryan Joseph via fpc-pascal
> On Mar 16, 2020, at 12:36 AM, fredvs via fpc-pascal > wrote: > > Hello. > > You may use http://free-pascal-general.1045716.n5.nabble.com/ > > This forum is an archive for the mailing list > fpc-pascal@lists.freepascal.org > > Fre;D Looks like everyone here likes the mailing list. Very w

Re: [fpc-pascal] Pass open array to static array?

2020-03-15 Thread Sven Barth via fpc-pascal
Ryan Joseph via fpc-pascal schrieb am So., 15. März 2020, 19:58: > > > > On Mar 15, 2020, at 8:53 PM, Howard Page-Clark via fpc-pascal < > fpc-pascal@lists.freepascal.org> wrote: > > > > > > With recent FPCs you can however do this: > > > > program test; > > var > > data: array[0..2] of Integer

Re: [fpc-pascal] Killing the mail list

2020-03-15 Thread Ralf Quint via fpc-pascal
On 3/15/2020 6:55 AM, Ryan Joseph via fpc-pascal wrote: It's 2020 and the mail list is starting to really show its age. I don't get first messages from gmail and my personal web host is whitelisted, messages bounce when I use the wrong account by accident, hard to search the archives, can't po

Re: [fpc-pascal] Killing the mail list

2020-03-15 Thread fredvs via fpc-pascal
Hello. You may use http://free-pascal-general.1045716.n5.nabble.com/ This forum is an archive for the mailing list fpc-pascal@lists.freepascal.org Fre;D - Many thanks ;-) -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-p

Re: [fpc-pascal] Killing the mail list

2020-03-15 Thread Alexander Grotewohl
Not that I'm anyone special but I and many others who lurk for the most part would probably just lose track of the project. -- Alexander Grotewohl https://dcclost.com From: fpc-pascal on behalf of Michael Van Canneyt Sent: Sunday, March 15, 2020 1:09:22 PM To:

Re: [fpc-pascal] Killing the mail list

2020-03-15 Thread Michael Van Canneyt
On Sun, 15 Mar 2020, Jonas Maebe wrote: On 15/03/2020 14:55, Ryan Joseph via fpc-pascal wrote: Has there ever been any discussion into replacing it with a modern web based forum? There are web forums if you prefer them to using a mailing list: https://forum.lazarus.freepascal.org/ (see the

Re: [fpc-pascal] Killing the mail list

2020-03-15 Thread Sven Barth via fpc-pascal
Ryan Joseph via fpc-pascal schrieb am So., 15. März 2020, 15:33: > It's 2020 and the mail list is starting to really show its age. I don't > get first messages from gmail and my personal web host is whitelisted, > messages bounce when I use the wrong account by accident, hard to search > the arch

Re: [fpc-pascal] Killing the mail list

2020-03-15 Thread geneb
On Sun, 15 Mar 2020, Ryan Joseph via fpc-pascal wrote: It's 2020 and the mail list is starting to really show its age. I don't get first messages from gmail and my personal web host is whitelisted, messages bounce when I use the wrong account by accident, hard to search the archives, can't pos

Re: [fpc-pascal] Pass open array to static array?

2020-03-15 Thread Ryan Joseph via fpc-pascal
> On Mar 15, 2020, at 8:53 PM, Howard Page-Clark via fpc-pascal > wrote: > > > With recent FPCs you can however do this: > > program test; > var > data: array[0..2] of Integer; > tmp: array of Integer = Nil; > begin > tmp := [1,2,3]; > Move(tmp[0], data[0], SizeOf(data)); > end. yea

Re: [fpc-pascal] Pass open array to static array?

2020-03-15 Thread Howard Page-Clark via fpc-pascal
On 15/03/2020 12:06, Ryan Joseph via fpc-pascal wrote: program test; var data: array[0..2] of integer; begin // Incompatible types: got "{Array Of Const/Constant Open} Array of ShortInt" expected "Array[0..2] Of LongInt" data := [1,2,3]; end. With recent FPCs you can however do this:

Re: [fpc-pascal] Killing the mail list

2020-03-15 Thread Jonas Maebe
On 15/03/2020 14:55, Ryan Joseph via fpc-pascal wrote: > Has there ever been any discussion into replacing it with a modern web based > forum? There are web forums if you prefer them to using a mailing list: https://forum.lazarus.freepascal.org/ (see the forums under the "Free Pascal" header). T

[fpc-pascal] Killing the mail list

2020-03-15 Thread Ryan Joseph via fpc-pascal
It's 2020 and the mail list is starting to really show its age. I don't get first messages from gmail and my personal web host is whitelisted, messages bounce when I use the wrong account by accident, hard to search the archives, can't post images and code easily (big problem!), messages gets lo

[fpc-pascal] Pass open array to static array?

2020-03-15 Thread Ryan Joseph via fpc-pascal
Why doesn't it compile to pass an open array to a static array of the same size? That would nice if this worked since it makes assigning values so easy. program test; var data: array[0..2] of integer; begin // Incompatible types: got "{Array Of Const/Constant Open} Array of ShortInt" expecte