Re: Re[4]: [fpc-pascal] variant part of a record

2006-09-20 Thread Marco van de Voort
> On 20 sep 2006, at 14:19, ??? wrote: > > Hacking the parser to support this directly is a waste of time imho > (not to mention that it would break the code's compatibility with > every other Pascal compiler out there afaik). Actually,?I wished for this one time or another. Usua

[fpc-pascal] String passing parameters DLL-DLL

2006-09-20 Thread afpTeam
Hi, I've come back to the list still looking for some advice on the best approach to handling strings as parameters being passed byRef out and back into an FPC DLL, talking to a win32 gui based DLL that wants AsciiZ strings. Looking at how much automation FPC does with typecasting, I've tried

Re: [fpc-pascal] Sched_Yield, TThread, Multiplexing, Sysutils, Sleep, Win32, Linux, and Thanks

2006-09-20 Thread Micha Nelissen
memsom wrote: >> it seemed to run in a serial fashion and not as a separate task. > > Well... Win32 at any rate, use one of the following: > > CreateSemaphore / CreateMutex / CreateEvent These are abstracted in the syncobjs unit IIRC. They are in general used to wait for something to become avai

RE: [fpc-pascal] Win32 Build Errors

2006-09-20 Thread Lee, John
The daily v211 & v20 win32 snapshots are currently working ok - they are done on winme which doesn't have this problem, so you could download the snapshot from ftp.freepascal.org .../snapshots/ if that's what you want. Regards John > -Original Message- > From: [EMAIL PROTECTED] > [mailt

Re: [fpc-pascal] Win32 Build Errors

2006-09-20 Thread Peter Vreman
> Greetings. > > When running 'make zipinstall' under Win32, the process ends with the > following error: > cp.exe: cannot remove old link to > `D:/fpc/../fpc-pack/examples/oracle/.svn/text- > > base/Makefile.fpc.svn-base': Permission denied This is a know issue. It is a bug in the non-fpc cp.exe

Re[4]: [fpc-pascal] variant part of a record

2006-09-20 Thread Пётр Косаревский
About contributing: is it useful to comment some parts of documentation ("html with comments") with improvements, corrections or compilable examples? For example, would it be meaningful to add an example on the discussed matter with a comment stating, that there are no such checks tonow?

Re: Re[2]: [fpc-pascal] variant part of a record

2006-09-20 Thread Jonas Maebe
On 20 sep 2006, at 16:09, Пётр Косаревский wrote: Well, I think, that the part "It's not because you don't pay me ..., that you do not have influence on the project ..." means, that I don't have direct influence on the project No. It was simply your "but I don't have anything to say anyway

Re[2]: [fpc-pascal] variant part of a record

2006-09-20 Thread Пётр Косаревский
About contributing: is it useful to comment some parts of documentation ("html with comments") with improvements, corrections or compilable examples? > >> It's not because you don't pay me, or because you cannot demand > >> anything from me or anyone else working on FPC, that you do not have

Re: [fpc-pascal] variant part of a record

2006-09-20 Thread Jonas Maebe
On 20 sep 2006, at 15:44, Vincent Snijders wrote: I *think* all he said was: Even if you don't pay me, even if you cannot demand anything from me, you still can have an influence on the project or on what I do. Yes. Jonas ___ fpc-pascal maillis

Re: [fpc-pascal] variant part of a record

2006-09-20 Thread Vincent Snijders
Пётр Косаревский schreef: It's not because you don't pay me, or because you cannot demand anything from me or anyone else working on FPC, that you do not have influence on the project or even on what I do (both positively and negatively). That was a difficult sentence. I think I understood

Re[8]: [fpc-pascal] variant part of a record

2006-09-20 Thread Пётр Косаревский
> It's not because you don't pay me, or because you cannot demand > anything from me or anyone else working on FPC, that you do not have > influence on the project or even on what I do (both positively and > negatively). > Jonas If I get it right, I don't have the influence, mainly because I

Re: [fpc-pascal] Stupid doubt with Lazarus

2006-09-20 Thread Graeme Geldenhuys
I think this was answered a few days ago. Someone else had the same question. You cannot visually (in the Object Inspector) link the two. For now you have to manually do it in code. Regards, - Graeme - On 20/09/06, "Fabrício F. Kammer" <[EMAIL PROTECTED]> wrote: Sorry by the question but I'm

Re: Re[6]: [fpc-pascal] variant part of a record

2006-09-20 Thread Jonas Maebe
On 20 sep 2006, at 14:41, Пётр Косаревский wrote: That would be more easily doable than the above, though again it would break compatibility with other Pascal compilers afaik. I thought so. But FPC isn't very compatible as it is: if you don't care for compatibility much, Delphi won't compi

Re[6]: [fpc-pascal] variant part of a record

2006-09-20 Thread Пётр Косаревский
> That would be more easily doable than the above, though again it > would break compatibility with other Pascal compilers afaik. > Jonas I thought so. But FPC isn't very compatible as it is: if you don't care for compatibility much, Delphi won't compile a program. Of course, TP will fail too.

Re: Re[4]: [fpc-pascal] variant part of a record

2006-09-20 Thread Jonas Maebe
On 20 sep 2006, at 14:19, Пётр Косаревский wrote: It's on my todo list to implement such checks (when enabled by a command line switch, of course). It's not that easy as it may look at first sight though. Jonas It's great news! However, in the case of such checks, ability to explicitly place

Re[4]: [fpc-pascal] variant part of a record

2006-09-20 Thread Пётр Косаревский
> It's on my todo list to implement such checks (when enabled by a > command line switch, of course). It's not that easy as it may look at > first sight though. > Jonas It's great news! However, in the case of such checks, ability to explicitly place tag variable in the record structure or t

[fpc-pascal] Stupid doubt with Lazarus

2006-09-20 Thread Fabrício F. Kammer
Sorry by the question but I'm not able to use on my forms the DataSources puted on the DataModule. I put the DataModule file on the uses clausule (like I make on Delphi) but when I select the DataSource property of the DBAware fields I can't see the DataSources components. What does I must m

Re[2]: [fpc-pascal] variant part of a record

2006-09-20 Thread Пётр Косаревский
> Maybe you should take a look at the GNAT source code, Ada Compiler's do > that sort of checks since 1983. ;) > Vinzent. Uh. See also intel 432 processor (1981, smalltalk and ada were main languages for it later, if I get it right)... ___ fpc-pascal ma

Re: [fpc-pascal] is www.freepascal.org out?

2006-09-20 Thread Fabrício F. Kammer
OK thanks... I'm able to get it now Tomas Hajny escreveu: On 19 Sep 06, at 16:09, Fabrício F. Kammer wrote: Hi all, is the domain www.freepascal.org out? DNS server problem. :-( You can get there by directly going to 62.166.198.202. Tomas ___ fp

Re: [fpc-pascal] variant part of a record

2006-09-20 Thread Jonas Maebe
On 20 sep 2006, at 13:35, Vinzent Hoefler wrote: Maybe you should take a look at the GNAT source code, Ada Compiler's do that sort of checks since 1983. ;) I doubt GNAT's symtable implementation is even remotely similar to FPC's symtable implementation... Jonas

Re: [fpc-pascal] variant part of a record

2006-09-20 Thread Vinzent Hoefler
On Wednesday 20 September 2006 11:25, Jonas Maebe wrote: > On 20 sep 2006, at 13:20, Пётр Косаревский wrote: > > I'm vague: for the first time I hoped that when you access the > > variant part, if the "case" variable was named, program checks it > > run-time. Hoping that it was implemented this way

Re: Re[2]: [fpc-pascal] variant part of a record

2006-09-20 Thread Jonas Maebe
On 20 sep 2006, at 13:20, Пётр Косаревский wrote: I'm vague: for the first time I hoped that when you access the variant part, if the "case" variable was named, program checks it run-time. Hoping that it was implemented this way, I asked about control over the relative place in the memory

Re[2]: [fpc-pascal] variant part of a record

2006-09-20 Thread Пётр Косаревский
> Yes, there is a language feature called object orientation. But still > that means you would have to translate the binary structure into a > class instance somehow. > Vinzent. The object I presented compiles well, but there is almost no gain in OO approach: I still have to nest structures and

Re: [fpc-pascal] variant part of a record

2006-09-20 Thread Vinzent Hoefler
On Wednesday 20 September 2006 08:26, Пётр Косаревский wrote: > I use > > {$A-} > abc= record > something: byte; > case byte of >1: (a,b: byte); >2: (c: word); > end; > {$A+} // or even a: byte; rsrvd1: array[1..3] of byte; b: word; ... > {$IF sizeof(abc)<>1234} >

Re: [fpc-pascal] Sched_Yield, TThread, Multiplexing, Sysutils, Sleep, Win32, Linux, and Thanks

2006-09-20 Thread memsom
> it seemed to run in a serial fashion and not as a separate task. Well... Win32 at any rate, use one of the following: CreateSemaphore / CreateMutex / CreateEvent Then use the handle with one of the following: WaitForSingleObject / WaitForMultipleObjects Depending on what you are doing, makin

Re[2]: [fpc-pascal] variant part of a record

2006-09-20 Thread Пётр Косаревский
> Vinzent H?fler> Probably you should used a "packed record", though. And it's > in no > Vinzent H?fler> way portable, of course. > Also correct. > Jonas I use {$A-} abc= record something: byte; case byte of 1: (a,b: byte); 2: (c: word); end; {$A+} // or even a:

[fpc-pascal] Sparc Linux Port of 2.1.1

2006-09-20 Thread Wolfe, Robert
The Sparc Linux build of 2.1.1 from the current SVN is available at:   http://www.net261.com:85/pages/robert/software/fpc/   Robert Wolfe ([EMAIL PROTECTED] / [EMAIL PROTECTED]) Computer Programmer/Analyst & Web Programmer SRDAR, Roswell Park Cancer Institute, Buffalo, New York 716-84

[fpc-pascal] Win32 Build Errors

2006-09-20 Thread Wolfe, Robert
Greetings.   When running ‘make zipinstall’ under Win32, the process ends with the following error:   cp.exe: cannot remove old link to `D:/fpc/../fpc-pack/examples/oracle/.svn/text- base/Makefile.fpc.svn-base': Permission denied cp.exe: cannot remove old link to `D:/fpc/../fpc-pack/e

[fpc-pascal] Sched_Yield, TThread, Multiplexing, Sysutils, Sleep, Win32, Linux, and Thanks

2006-09-20 Thread Jason P Sage
First of all, I just had an altercation with my outlook – so I I’m a bit disorganized now – ugh – But I wanted to thank Mark who suggested the Linux fpNanoSecond function and the feedback from Micha.   Additionally, the suggestion to help the Free Pascal Team on things like the Smart Link

Re: [fpc-pascal] variant part of a record

2006-09-20 Thread Jonas Maebe
On 20 sep 2006, at 02:10, Vinzent Höfler wrote: so I have to use record Something: byte; case byte of 1: (x,y: word); 2: (z: longword); end; No, AFAIK you don't have to, it's the same, just a different syntax. Correct. Probably you should used a "packed record", though. An