Re: [fpc-pascal] Get user ID for name on Linux

2018-01-02 Thread Graeme Geldenhuys
On 2018-01-03 00:12, Tobias Giesen wrote: Unfortunately Libc and UnixUtils don't seem to be available in 64-bit, so I can't call the functions getpwnam or GetUserId. As Marco said, you can use the "users" unit. Here is an example of how I use in in fpGUI, and it supports 32-bit and 64-bit

Re: [fpc-pascal] Get user ID for name on Linux

2018-01-02 Thread Marco van de Voort
In our previous episode, Tobias Giesen said: > I would like to get the user ID for a Linux user name. > > Unfortunately Libc and UnixUtils don't seem to be available in 64-bit, so I > can't call the > functions getpwnam or GetUserId. Is there a replacement? Or could I define > and > import the

[fpc-pascal] Get user ID for name on Linux

2018-01-02 Thread Tobias Giesen
Hello, I would like to get the user ID for a Linux user name. Unfortunately Libc and UnixUtils don't seem to be available in 64-bit, so I can't call the functions getpwnam or GetUserId. Is there a replacement? Or could I define and import the function myself? Thanks for any help! Cheers,

Re: [fpc-pascal] Modern Compiler Construction using Pascal

2018-01-02 Thread Marc Santhoff
On Mon, 2018-01-01 at 13:17 -0500, Yves Cloutier wrote: > Hi there, > > I'd be interested to know if any modern compilers have been written > in > Pascal (other than the Pascal Compiler). A bit outdated, but intresting: http://pascaland.org/pascall.htm -- Marc Santhoff

Re: [fpc-pascal] Modern Compiler Construction using Pascal

2018-01-02 Thread Santiago A.
El 01/01/2018 a las 19:17, Yves Cloutier escribió: > Hi there, > > I'd be interested to know if any modern compilers have been written in > Pascal (other than the Pascal Compiler). > > It's unfortunate that that most Pascal books out there are rather > dated.  I did recently purchase  The first

Re: [fpc-pascal] Modern Compiler Construction using Pascal

2018-01-02 Thread Marc Santhoff
On Mon, 2018-01-01 at 13:17 -0500, Yves Cloutier wrote: > Hi there, > > I'd be interested to know if any modern compilers have been written in > Pascal (other than the Pascal Compiler). > > It's unfortunate that that most Pascal books out there are rather dated. I > did recently purchase >

Re: [fpc-pascal] Modern Compiler Construction using Pascal

2018-01-02 Thread greim
I guess you already noticed the book of the master himself: Nicklaus Wirth https://www.inf.ethz.ch/personal/wirth/CompilerConstruction/index.html Its revised 2017 (!) based on Oberon. Afaik one of the first editions was based on Pascal. Markus Am 01.01.2018 um 19:17 schrieb Yves

Re: [fpc-pascal] Modern Compiler Construction using Pascal

2018-01-02 Thread Mattias Gaertner
On Mon, 1 Jan 2018 13:17:47 -0500 Yves Cloutier wrote: > Hi there, > > I'd be interested to know if any modern compilers have been written in > Pascal (other than the Pascal Compiler). pas2js is written in FPC. Mattias ___

[fpc-pascal] Modern Compiler Construction using Pascal

2018-01-02 Thread Yves Cloutier
Hi there, I'd be interested to know if any modern compilers have been written in Pascal (other than the Pascal Compiler). It's unfortunate that that most Pascal books out there are rather dated. I did recently purchase Compiler Engineering Using Pascal (by Capon)