Re: [fpc-pascal] Lazarus settings and roaming profiles in Windows

2009-07-16 Thread Micha Nelissen
Florian Klaempfl wrote: Roaming profiles using auto copy/delete are not the best choice for that. For me it works fine for years ;) Then you must be the only one since everybody I know despises it. We use multiple times login sometimes and then the settings are always messed up. If the

Re: [fpc-pascal] Lazarus settings and roaming profiles in Windows

2009-07-16 Thread Micha Nelissen
Florian Klaempfl wrote: Then you must be the only one since everybody I know despises it. We use multiple times login sometimes and then the settings are always messed up. Well, this causes a headache with fully networked home drives as well ;) If configuration files are per application

Re: [fpc-pascal] Lazarus settings and roaming profiles in Windows

2009-07-16 Thread Micha Nelissen
Florian Klaempfl wrote: My conclusion: I agree with Jonas, you can use network shares for development machines.. Consider 10-50 people working and accessing a server this way :) Using roaming profiles and local source checkouts, this can be handled easily by a 1k Eur server which even doesn't

Re: [fpc-pascal] Lazarus settings and roaming profiles in Windows

2009-07-16 Thread Micha Nelissen
Vincent Snijders wrote: I am not sure having a 100 MB lazarus *roaming* profile by default would be a good idea. Probably the choice to compile lazarus itself to its configuration directory is not such a good idea ;-). Micha ___ fpc-pascal

Re: [fpc-pascal] Lazarus settings and roaming profiles in Windows

2009-07-16 Thread Micha Nelissen
Florian Klaempfl wrote: Micha Nelissen schrieb: Florian Klaempfl wrote: And applications can implement a configuration file lock much easier if they want to detect multiple activity. Do they :)? Does lazarus? IIRC OpenOffice (3.0) does detect it already and warn me. Well, then you need

Re: [fpc-pascal] Re: getting started with threads

2009-09-19 Thread Micha Nelissen
Graeme Geldenhuys wrote: So far I have single interface for create/destroy/lock/unlock of semaphores for Windows, Linux, *BSD. The latter two is actually for all A semaphore is not locked and unlocked, it is posted and waited for. Micha ___

Re: [fpc-pascal] getting started with threads

2009-09-19 Thread Micha Nelissen
Jonas Maebe wrote: on x86 too). Atomic operations are not memory barriers by themselves, and the fact that you perform an atomic operation does not mean that afterwards all cpu's will immediately see this new value. Explain? Isn't the point of an atomic update that it doesn't matter whether

Re: [fpc-pascal] multiple inheritence

2009-10-03 Thread Micha Nelissen
David Emerson wrote: lists containing the same elements: one sorted, one unsorted. The reason to have both: sorted - fast search; unsorted - sequential navigation through the list while elements are being added. It's not as if combining those gives you the best of both worlds ... if the

Re: [fpc-pascal] FIONREAD FPC FpIOCtl for Cross platform Sockets

2009-10-09 Thread Micha Nelissen
Andrew Brunner wrote: Sockets programming often requires a poll for how much data is available on a particular socket descriptor. AFAIK, it doesn't? If data is available, but less than you request, a 'read' on the socket does not block, but returns the number of bytes read, which is less

Re: [fpc-pascal] Illogical automatic dereferencing

2009-10-10 Thread Micha Nelissen
Henry Vermaak wrote: One thing I think you don't understand is that an array _is_ a pointer. Look at this table to visualise: In Pascal, an array is not a pointer; at least not at the language level. For a static array X (array[1..n] of T), you *can* write: Move(Ptr^, X, sizeof(X));

Re: [fpc-pascal] (no subject)

2009-10-17 Thread Micha Nelissen
ak za wrote: i want to don't send mail to me from you but idn't know how do it. please guide me Do you mean unsubscribe, see link at bottom of this email: http://lists.freepascal.org/mailman/listinfo/fpc-pascal Then look at bottom of page, unsubscribe. Micha

Re: [fpc-pascal] memory mapped file

2009-10-31 Thread Micha Nelissen
Alexey Voytsehovich wrote: All the good days. You can not tell what I need to read and/or study for solving cross-platform (linux/windows) implementation of the memory mapped file? On unix, it would be fpmmap. On windows, it would be CreateFileMapping/MapViewOfFile if I'm not mistaken.

Re: [fpc-pascal] bzip2

2009-10-31 Thread Micha Nelissen
Juha Manninen wrote: Oops, sorry. I will do that. Where does the thread information come from? It looks good in my email client and I don't see any extra data. Try to enable 'Threaded view'; usually somewhere in the View menu, Sort menu, etc. Depends on client used. Micha

Re: [fpc-pascal] Generic type declaration example versus manual.

2009-11-21 Thread Micha Nelissen
Jonas Maebe wrote: tgeneric16.pp is not an example, it's a test. Moreover, it doesn't compile yet, not even with FPC 2.5.1. So documenting that syntax is not really a good idea. His comment doesn't really apply to tgeneric16 specifically, but more to generic syntax in general. Micha

Re: [fpc-pascal] readonly variables

2009-11-29 Thread Micha Nelissen
Anthony Walter wrote: Having said all that, Jonas, what is the actual implemented behaviour of FPC? Does it 0 initialize heap memory at startup or not? If not, what is the justification for not doing so when this has been a long established behaviour of Delphi? It's not the compiler or RTL

Re: [fpc-pascal] Pointers

2010-02-11 Thread Micha Nelissen
Rainer Stratmann wrote: Ok, that makes some sense, but I did not know it before. In the past with the turbopascal compiler and other always sizeof byte was added. The behavior is dependent on the {$T+} (typed pointers) mode. Micha ___ fpc-pascal

Re: [fpc-pascal] FPC static linking of zlib

2010-04-13 Thread Micha Nelissen
Matthias Klumpp wrote: If you build the package using lazbuild, lintian (the Debian policy checker tool) throws an error described here: http://lintian.debian.org/tags/embedded-zlib.html paszlib is a pascal implementation of compression. How is that check performed? Maybe it triggers on some

Re: [fpc-pascal] FPC static linking of zlib

2010-04-14 Thread Micha Nelissen
Michael Van Canneyt wrote: libz.so.1 = /lib/libz.so.1 (0x7f6de2801000) As you can see, it uses libz (or zlib) but dynamically, probably through some library dependency. I think this dynamic library dependency is caused by e.g. gtk, not directly by application or lcl or fcl

Re: [fpc-pascal] GetTempFileName in Linux

2010-10-07 Thread Micha Nelissen
Michael Van Canneyt wrote: Yes, but if the administrator must update 20 PCs manually every 2 weeks, he quickly complains that he has better things to do, so it must be done when the 'ordinary' user uses the application. Aren't there automation systems for this? Just like debian's 'apt-get

Re: [fpc-pascal] GetTempFileName in Linux

2010-10-07 Thread Micha Nelissen
Michael Van Canneyt wrote: I haven't seen any yet. The main problem is that the update isn't 'optional' or 'to be scheduled at X every night'. It must be done when the server application says it is time to do so. apt-proxy ... push to the proxy when it's time to update stuff ;) Micha

Re: [fpc-pascal] Re: Converting code from C++ to FP....

2011-03-20 Thread Micha Nelissen
Jorge Aldo G. de F. Junior wrote: const has the same effect as fpc const before a parameter, This is not true. double* SX0 is the same as double *SX0 or double * SX0 so this becomes const SX0 : pdouble (ugly pointer as array Cishism) No! 'const double * X' in C makes the pointed-to data

Re: [fpc-pascal] Implementing a true Singleton - Can we decrease the visibility of a method?

2006-12-08 Thread Micha Nelissen
Daniël Mantione wrote: Op Fri, 8 Dec 2006, schreef Micha Nelissen: Btw, I think singletons are nonsense too. Why is a global variable evil, and a singleton class not ? Well, a singleton can hide and/or protect its private data. Not more than a global variable of the same class type

Re: [fpc-pascal] GetEpochTime not found

2006-12-09 Thread Micha Nelissen
Marc Santhoff wrote: Hi, I've got some funny problem here. The program compiled well with fpc up to version 1.9.4. I haven't touched it for a while and now it fails with fpc 2.0.2. CommonTypes.pp(207,21) Error: Identifier not found GetEpochTime

Re: [fpc-pascal] GetEpochTime not found

2006-12-09 Thread Micha Nelissen
Marco van de Voort wrote: fpc 2.0.2. CommonTypes.pp(207,21) Error: Identifier not found GetEpochTime http://www.freepascal.org/docs-html/rtl/oldlinux/getepochtime.html He uses FreeBSD. Ah right, this was apparent from the unit path. Micha ___

Re: [fpc-pascal] Wikies

2007-02-11 Thread Micha Nelissen
Felipe Monteiro de Carvalho wrote: Hello, Are the wikis being merged? Is it my impression, or is there a main page for compiler things missing? The pages are there. When I go to fpc page and click on Wiki it shows lazarus-ccr wiki, and I can´t find what was the old free pascal main wiki

Re: [fpc-pascal] fpc have problem with dynarray in ARM

2007-02-23 Thread Micha Nelissen
Jose Pascual wrote: Could it be resolved in 2.1.1? I'm compiling ppcrossarm 2.1.1 in order to be it's corrected in this version, Open a (descriptive) bug report (in case there is none about this issue yet) and attach a test case. Micha ___

Re: [fpc-pascal] Wikies

2007-02-24 Thread Micha Nelissen
Florian Klaempfl wrote: I am finished. It can be improved, but I'm out of ideas =) I'am not ;) The wiki is definitively not the FPC documentation. I've changed it to 'documentation for developers'. Covers the content better ? Micha ___ fpc-pascal

Re: [fpc-pascal] problem with threads and backgrounding, fpc 2.1.3 arm native

2007-04-03 Thread Micha Nelissen
Luca Olivetti wrote: synchronize and critical sections, c library with callbacks to pascal, etc.) is working flawlessly in the foreground, but it segfaults if I try to background it (or try to use fpFork), and this is a problem since I want to write a daemon (i can use screen though if that

Re: [fpc-pascal] problem with threads and backgrounding, fpc 2.1.3 arm native

2007-04-03 Thread Micha Nelissen
Luca Olivetti wrote: [EMAIL PROTECTED]:~$ uname -a Linux lspro 2.6.12.6-arm1 #77 Tue Dec 5 22:23:46 CST 2006 armv5tejl GNU/Linux I've gotten access to an arm-linux system, where I cannot reproduce the crash. That system is using 2.6.18 kernel. Can you try a newer kernel as well ? Micha

Re: [fpc-pascal] problem with threads and backgrounding, fpc 2.1.3 arm native

2007-04-03 Thread Micha Nelissen
Luca Olivetti wrote: Backgrounding is not the same as forking. I (vaguely) understand the difference, but I think (probably mistakenly) that the problems are related. I'm not saying the problems are not related; they may be. It's just important to know there is a difference. the example

Re: [fpc-pascal] problem with threads and backgrounding, fpc 2.1.3 arm native

2007-04-05 Thread Micha Nelissen
Luca Olivetti wrote: This is another test program that shows my problem with fork: as soon as I start the thread, the main program stops working (the thread *is* running, you can put a writeln in its loop to show it). Note that in this short example I don't close stdin,stdout,stderr, I don't

Re: [fpc-pascal] TThread.Suspend under Linux

2007-06-02 Thread Micha Nelissen
Graeme Geldenhuys wrote: I got most of my Thread Manager demo written. While trying out a few features I noticed that every time as Suspend a thread, my app is killed. Running it through gdb I get the following output. I don't see it being killed from your output, or am I missing something ?

Re: [fpc-pascal] Linux Linking Error solved

2007-06-04 Thread Micha Nelissen
Rick Seiden wrote: I emailed yesterday about an error when compiling in Linux. The error I received was Error while linking. I figured out that the permissions on /usr/bin/ld is set to root, and I'm logged in as a different user. When I sudo fp to start Free Pascal, I am able to compile

Re: [fpc-pascal] PASCAL programming for Novice

2007-06-10 Thread Micha Nelissen
Francisco Reyes wrote: Pete Cervasio writes: Contents of $HOME/.vim/filetype.vim: Thanks. Found that it also works with .pas Changed the programs to that since that is one of the extensiosn the compiler also checks for. ___ If you google for

Re: [fpc-pascal] Re: put data to stdout (fpc vs. gcc)

2007-06-15 Thread Micha Nelissen
Michael Van Canneyt wrote: You would have to test the speed of each of them separately to be able to say anything definitive. Like it is now, there is no indication that it is the float-to-text routine which is to blame. So use sprintf in C, and the equivalent in fpc; and rerun the test.

Re: [fpc-pascal] Starting new threads

2007-06-21 Thread Micha Nelissen
Tom York wrote: By the way is NNTP forbidden? I would much rather use NNTP over a mailing list. IIRC, these lists are mirrored in gmane, so perhaps you can use gmane ? Have the mailing list subscription, but configure it to not send email. Micha ___

Re: [fpc-pascal] PowerPC crosscompiler on i386 Mac OS X looks for, wrong assembler and linker

2007-07-03 Thread Micha Nelissen
Adriaan van Os wrote: build and then the Makefile takes cares of the rest. If a configuration is not supported or if there is a problem, you get a clear error message. You *must* be joking, right ? Usually it involves digging through a messy config.log, where you sometimes can't really find the

Re: [fpc-pascal] Problem with interfaces

2007-08-20 Thread Micha Nelissen
Joao Morais wrote: The first call that I make to DefaultObj from *another* unit recreate the object, because, I don't know why, the _holder var points again to nil. Try to use a data watchpoint to watch when the variable is being changed. Hopefully that will point to the root cause. Did you

Re: [fpc-pascal] Audio development and /dev/dsp

2007-09-28 Thread Micha Nelissen
ik wrote: lsof does not give me any open access to the device. I'm using Kubunto 7.04 amd64. Buggy audio driver ? Does it work properly when using ALSA, aplay etc. ? Micha ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] random Disk Full exceptions

2007-10-20 Thread Micha Nelissen
Marc Santhoff wrote: writeln(stderr, '-- hit found: '+inttostr(fcnt) + ' - ' + inttostr(PInteger(longint(adr)-longint(fx))^) + ' - ' + floattostr(PSingle(adr)^)); Very nasty thing: The output channel is temporarily blocked and gives back EAGAIN. This means the output channel is opened

Re: [fpc-pascal] FPC and JAVA

2007-10-27 Thread Micha Nelissen
Jonas Maebe wrote: go for any Lazarus/Delphi app ported to the Mac, for that matter (unless Lazarus can do automatic button layouting, and if the current layout mismatch is simply due to some wrong default setting for the Carbon target). Actually, we have a TButtonPanel exactly for this

Re: [fpc-pascal] Re: Why this evaluates on if wrong ?

2007-10-29 Thread Micha Nelissen
Stephen Dickason wrote: In binary that is 0001 + 0.0110011001100 - 0.0110011001100 because we hit recurring decimals a lot more in binary than decimal. I wonder why we don't have a standard format (maybe we do?) that factors in the remainder as part of the number also? It's

Re: [fpc-pascal] fpnanosleep (again)

2007-11-08 Thread Micha Nelissen
John Coppens wrote: Just an extra note: delay(1) seems to delay 4.1 ms, so it _does_ seem to be possible to do less than 8.3? You wait till the next tick that is after the requested delay. So it's never a HZ multiple or so. Micha ___ fpc-pascal

Re: [fpc-pascal] CSV via PCRE

2007-11-10 Thread Micha Nelissen
Graeme Geldenhuys wrote: OK, while we are busy with show-and-tell... Then have a look at my token library implementation. You've implemented some kind of 'cut'. But grep is also very useful (and more often used in a shell, at least by me). Micha ___

Re: [fpc-pascal] Problems with generics

2007-12-29 Thread Micha Nelissen
bartek wrote: function HashOf(const Key: ShortString): DWord; function BucketNodeOf(const Hash: DWord): TBucket.PNode; DataContainers.pp(104,66) Fatal: Syntax error, ; expected but . found I'd say this is a bug, and your syntax is correct. Update the existing

Re: [fpc-pascal] Problems with generics

2007-12-30 Thread Micha Nelissen
bartek wrote: I am not quite sure whether my synatx is correct. IMHO explictly defining the type feels more pascalish. Having more time at hand i have written a much shorter example code which shows in what way such a type should be defined. I think that it is the same type in a different

Re: [fpc-pascal] static class methods

2008-02-06 Thread Micha Nelissen
Jonathan Benedicto wrote: Jonas Maebe wrote: I'm not sure how Delphi could handle this without passing the VMT as invisible parameter (and from a cursory look at the code generated by Kylix, it does appear to pass the VMT). Delphi doesn't allow static class methods to be virtual. What

Re: [fpc-pascal] syscalls and fpc

2008-02-14 Thread Micha Nelissen
ik wrote: Hi, I found that the Do_Syscalls are written in assembly and have only limited number of parameters (up to 6). Is there a way to write it using array of TSysParam instead of having 7 different functions ? Maybe but it wouldn't make the assembler easier to read :-). Another

Re: [fpc-pascal] syscalls and fpc

2008-02-15 Thread Micha Nelissen
ik wrote: Actually the assembler is not that hard to understand :) My point is, that I don't like the idea of 7 or 20 or 100 amount of parameters to give answer to every need. I think we should find a better way to implement it, like var args in C or open array in pascal... The linux kernel

Re: [fpc-pascal] AnsiDequotedStr not return empty for

2008-03-02 Thread Micha Nelissen
Peter Vreman wrote: In case always check Delphi documentation to see wether the behaviour you see is intentional. In case of it is also ambigious what you want. Because in the middle of the string is translated to a single . So you might also expect that it returns a single instead of an

Re: [fpc-pascal] Generics

2008-03-31 Thread Micha Nelissen
Damien Gerard wrote: Oki I understand. I tried to use an Interface but I had a nice Segementation fault :) I'm not sure how FParent.ItemByDefault is going to work? Micha ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Generics

2008-03-31 Thread Micha Nelissen
Damien Gerard wrote: I tried to use an Interface but I had a nice Segementation fault :) Should I report it as a bug in the mantis ? foo.pas Actually there is the same error with an intermediate class :( Segmentation faults in the compiler itself can/should always be reported. Thanks.

Re: [fpc-pascal] Enabling FPC_HAS_FEATURE_CONSOLEIO

2008-07-29 Thread Micha Nelissen
leledumbo wrote: This is very inconvenient. Moreover, assertions needs it. My first attempt, is to comment out {$undef FPC_HAS_FEATURE_CONSOLEIO} in my system.pas. But then, FPC argues about Unknown compilerproc fpc_write_text_shortstr. I found it in text.inc, but it's only included if

Re: [fpc-pascal] Translate C to Pascal

2008-07-30 Thread Micha Nelissen
Mattias Gärtner wrote: How to translate this: struct a; Isn't this a forward declaration? So sometime later it needs to declare 'struct a { ... };' ? Micha ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Speed difference between intel/ppc on intel Mac

2008-09-07 Thread Micha Nelissen
Jonas Maebe wrote: You can use -vd to have the compiler print out all compiler options it interprets (both from configuration files and from the command line). In general, to get the best code for an Intel Core family processor, use something like -O3ppentium4 -Cppentium4 -Cfsse2 i doubt

Re: [fpc-pascal] Make FPC closer to hardware

2008-11-15 Thread Micha Nelissen
leledumbo wrote: Would it be a good idea to lower down (again) FPC so that it can be used easier for systems programming? example? Micha ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Lazarus: graphical interface using code only?

2008-12-04 Thread Micha Nelissen
Graeme Geldenhuys wrote: I'm curious... How do you manage to create a GUI or use a GUI program if you are blind? Sorry, I don't know how screen readers work? Try http://en.wikipedia.org/wiki/Screen_reader for a start? Micha ___ fpc-pascal maillist

Re: [fpc-pascal] fstat usage

2008-12-06 Thread Micha Nelissen
Francisco Reyes wrote: Trying the fstat function and don't seem to be getting the right values for ctime, mtime and atime. What OS and CPU ? Micha ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Using FPC MM in a C program

2009-01-06 Thread Micha Nelissen
leledumbo wrote: Since it's possible to use libc's MM via cmem unit, would the opposite be possible? I have a crtl.pas which defines a few functions (malloc, calloc, free, memmove, memcpy) to help in using libraries written in C with fpc programs without needing external dependencies

Re: [fpc-pascal] REQ: official FPC's FCGI framework

2009-02-12 Thread Micha Nelissen
Bee wrote: Hi all, FPC has pretty usable support for web based development. Currently FPC supports it through CGI and Apache module. IMO, there's one more support that should be added officially: FastCGI. The initial work has been done lNet has fastcgi support. Maybe it's interesting for

Re: [fpc-pascal] Dependencies of FPC_HAS_FEATURE_XXX

2009-05-05 Thread Micha Nelissen
Sven Barth wrote: Hmm... if this speeds things up: shall I enclose the problematic places with ifdefs and send a patch along with the bug report? Got response yet? If not then yes, please send patches per topic to ifdef the optional code away. Micha

Re: [fpc-pascal] heap size growing

2009-05-11 Thread Micha Nelissen
Luca Olivetti wrote: Seeing this thread, I used GetFPCHeapStatus and, effectively, CurrHeapSize is growing but CurrHeapUsed isn't, so apparently TJpegImage.LoadFromStream (that's what I'm using) causes heap fragmentation. Can you reproduce this in a small test program? Perhaps there is a

Re: [fpc-pascal] re: thanks for major signal handling fix

2009-05-20 Thread Micha Nelissen
Jonas Maebe wrote: On 20 May 2009, at 22:01, Jonas Maebe wrote: The problem you have right now is that the program and each of your libraries each contain their own copy of the exception class, and therefore do not recognise (Pascal) exceptions raised by any of the others. Well, that and

Re: [fpc-pascal] Class procedure assigned to object's event

2009-05-27 Thread Micha Nelissen
Antonio Sanguigni wrote: For the second one: main.pas(261,19) Error: Incompatible types: got class method type of procedure(TObject, Boolean,const AnsiString) of object;Register expected procedure variable type of procedure(TObject, Boolean,const AnsiString) of object;Register Remove the

Re: [fpc-pascal] DirectFB for FPC beta tarball

2009-05-31 Thread Micha Nelissen
Michael Van Canneyt wrote: The known major bugs of previous SVN versions have beeen fixed. We're now starting to actually use DFB in our project. Reports (bugs or anything) are thus highly appreciated. Do you think it would be feasible to use this as a basis for a Lazarus widgetset ? Lazarus

Re: [fpc-pascal] ReAllocMem problem (?)

2005-03-12 Thread Micha Nelissen
On Sat, 12 Mar 2005 21:46:15 +0100 mm [EMAIL PROTECTED] wrote: Micha Nelissen wrote: The problem with your approach is: how do you know whether the memory was extended, or left alone because there was no memory available to extend it ? In general, shortage of memory produces a runtime error

Re: [fpc-pascal] Blockread and buffers

2005-03-25 Thread Micha Nelissen
On Fri, 25 Mar 2005 21:35:10 +0100 Peter J. Haas [EMAIL PROTECTED] wrote: Most ppl want compatibility with Delphi. When we add a warning for uninitialized var parameters then there will be a lot of bug reports that Delphi doesn't warn in those cases and we will have to reject the bug

[fpc-pascal] Untyped stdin 'file'

2005-07-06 Thread Micha Nelissen
Hi, How can I have an untyped stdin ? I want to use blockread on stdin. Currently, variable 'input' is of type text. If I assign '' to a file variable and reset that, then it opens the keyboard, so that shell redirection does not work. Micha ___

Re: [fpc-pascal] System.Write broken?

2005-07-13 Thread Micha Nelissen
On Wed, 13 Jul 2005 16:02:21 -0500 Elio Cuevas Gómez [EMAIL PROTECTED] wrote: Hi, the folowing code enters infinite loop in the newest version of FreePascal: program textfile; var Archivo: Text; Linea: AnsiString; begin Assign(Archivo, 'test.pp'); Reset(Archivo); While

Re: [fpc-pascal] single application instance

2005-09-23 Thread Micha Nelissen
On Fri, 23 Sep 2005 17:16:36 +0100 Matt Emson [EMAIL PROTECTED] wrote: How can I also do it in linux? Use semaphores. There is a semaphore implementation for LINUX, Windows, BeOS Semaphores Mutexes. Semaphores do not always have names and are not system-wide. Micha

Re: [fpc-pascal] Lazarus IDE Question

2005-10-18 Thread Micha Nelissen
David Chandler wrote: I am trying to create a menu bar using Lazarus. I drop the TMainMenu icon onto the form. Then I modify the Items in the Object Inspector and can get the first menu item, but that is all. I can't enter more menu headings or submenu items. I checked a Delphi reference

Re: [fpc-pascal] Records

2005-10-26 Thread Micha Nelissen
Adriaan van Os wrote: I have never could understand when this is allowed A1:=A2; Why this is not allowed If A1=A2 then in most Pascal compilers. Because you can't simply compare the memory ranges occupied by records A and B. They could have different pad bytes (and bits) but still be the

Re: [fpc-pascal] Records

2005-10-26 Thread Micha Nelissen
Jonas Maebe wrote: Yes, but two different variables of the same type could have different values for those pad bytes. So you have to compare everything but the pad bytes. Oh right! Something like a masked compare or so...probably not implementable in an efficient way indeed I guess.

Re: [fpc-pascal] Records

2005-10-26 Thread Micha Nelissen
Vinzent Hoefler wrote: Oh right! Something like a masked compare or so...probably not implementable in an efficient way indeed I guess. Whatever you call efficient. A simple memory compare won't do, as others already pointed out, and everything else depends on the actual layout of the

Re: [fpc-pascal] Lazarus and FPC integration

2005-10-30 Thread Micha Nelissen
On Sun, 30 Oct 2005 11:07:13 -0300 Agustin Barto [EMAIL PROTECTED] wrote: Errr...Lazarus is a good IDE/RAD? It certainly is a good start, but is far from being comparable with other development enviroments. If you ask me, it's too much like Delphi (that's really bad). Although 99.5% of my

Re: [fpc-pascal] Lazarus and FPC integration

2005-10-31 Thread Micha Nelissen
On Sun, 30 Oct 2005 21:08:31 -0600 Elio Cuevas Gómez [EMAIL PROTECTED] wrote: I'd like to know why this isn't a problem in Eclipse or KDevelop, but is in Lazarus. Don't take the comment too personal :). I don't think the problem is necesarily bad, i love Lazarus, it can get me an

Re: [fpc-pascal] Lazarus and FPC integration

2005-11-01 Thread Micha Nelissen
Elio Cuevas Gómez wrote: (and delphi and VB), it's easy to fall into the trap to base your backend design on the GUI design. If Eclipse or KDevelop have a solution for this Well, i never said these were better than Lazarus (in fact this is the first time i even mention them in this list). For

Re: [fpc-pascal] for..in loops?

2005-11-18 Thread Micha Nelissen
On Fri, 18 Nov 2005 13:18:40 -0800 (PST) Alan Mead [EMAIL PROTECTED] wrote: fpc 2.0.0 doesn't compile this... are for..in loops in a newer version or will they be sometime soon? Here is a little blurb about FPC will never support this, AFAIK. It doesn't really add anything new, it just

Re: [fpc-pascal] for..in loops?

2005-11-18 Thread Micha Nelissen
On Fri, 18 Nov 2005 22:40:20 +0100 Micha Nelissen [EMAIL PROTECTED] wrote: On Fri, 18 Nov 2005 13:18:40 -0800 (PST) Alan Mead [EMAIL PROTECTED] wrote: fpc 2.0.0 doesn't compile this... are for..in loops in a newer version or will they be sometime soon? Here is a little blurb about FPC

Re: [fpc-pascal] Remote FreePascal compile service, feedback requested

2005-12-05 Thread Micha Nelissen
Michael Van Canneyt wrote: Don't make all distributed units available, and forbid the use of some units. You don't want people opening an FTP socket and download 24G on your machine. I think it only compiles things, and does not execute them. Micha

Re: [fpc-pascal] FreePascal 2.0.2 available

2005-12-12 Thread Micha Nelissen
constantijnw wrote: Felipe Monteiro de Carvalho wrote Specifically for FPC Run-time Library units you can check a list of units + documentation here: http://www.freepascal.org/docs-html/rtl/index.html Unreachable... Weird, are you on wireless or anything like that ? (Do you have normal

Re: [fpc-pascal] First Test of FastMM4 for fpc

2005-12-15 Thread Micha Nelissen
On Thu, 15 Dec 2005 18:21:18 +0100 Adrian Veith [EMAIL PROTECTED] wrote: I have changed the FastMM4 that it seemd to work with fpc now. Here are the results of my prior tests now with FastMM4 for fpc: How did you fix FastReallocMem? FPC uses a 'var APointer', but delphi doesn't, apparantly.

Re: [fpc-pascal] parameter names local, global, glocal

2006-01-18 Thread Micha Nelissen
On Wed, 18 Jan 2006 13:39:21 -0700 L505 [EMAIL PROTECTED] wrote: Conclusion: never call any parameter of any procedure or function exactly like any property of any class and its ancestors. So far I thought, parameter names of functions and procedures are always local, i.e. valid for this

[fpc-pascal] TProcess execution

2006-02-08 Thread Micha Nelissen
Hi, How can I know whether a TProcess failed when trying to execute it ? Running will be false, but I want to distinguish between the file not there / no execution permission / etc. and it started running but was done quickly. Micha ___ fpc-pascal

Re: [fpc-pascal] TProcess execution

2006-02-08 Thread Micha Nelissen
On Wed, 8 Feb 2006 20:30:50 +0100 Micha Nelissen [EMAIL PROTECTED] wrote: How can I know whether a TProcess failed when trying to execute it ? Running will be false, but I want to distinguish between the file not there / no execution permission / etc. and it started running but was done

Re: [fpc-pascal] TProcess execution

2006-02-08 Thread Micha Nelissen
Michael Van Canneyt wrote: On Wed, 8 Feb 2006, Micha Nelissen wrote: How can I know whether a TProcess failed when trying to execute it ? Running will be false, but I want to distinguish between the file not there / no execution permission / etc. and it started running but was done quickly

Re: [fpc-pascal] Computer Language Shootout - updated to Free Pascal 2.0.2

2006-02-08 Thread Micha Nelissen
Isaac Gouy wrote: Several older benchmarks have been deprecated and replaced. http://shootout.alioth.debian.org/gp4/pascal.php Hmm why is mandelbrot so slow for fpc ? Is it doing any output buffering ? Micha ___ fpc-pascal maillist -

Re: [fpc-pascal] TProcess execution

2006-02-08 Thread Micha Nelissen
Jonas Maebe wrote: On 9 feb 2006, at 07:48, Micha Nelissen wrote: That I should have noticed :-). In unix, the return result of the 'fpexecve' call is not checked, at least. If it returns, it does 'halt(127)', so should I check the ExitStatus being 127 ? The reason is that because

[fpc-pascal] Wiki why to use pascal

2006-02-09 Thread Micha Nelissen
Hi all, http://www.freepascal.org/wiki/index.php/Why_to_use_Pascal Most of the developing time spent in Pascal is on the program itself. Unlike C and C++ like language, the developer does not need to focus on managing the memory of variables, the structure of very simple things like passing

Re: [fpc-pascal] TProcess execution

2006-02-09 Thread Micha Nelissen
On Thu, 9 Feb 2006 08:42:21 +0100 Jonas Maebe [EMAIL PROTECTED] wrote: The reason is that because of the fork/vfork construct these OS'es use, there is no way to report an error to the parent process except by exit codes. This is not true btw: you can use shared memory. Set up a variable

Re: [fpc-pascal] TProcess execution

2006-02-11 Thread Micha Nelissen
On Wed, 8 Feb 2006 20:30:50 +0100 Micha Nelissen [EMAIL PROTECTED] wrote: How can I know whether a TProcess failed when trying to execute it ? I'm also having problems how to when the process has started or failed. I thought of trying to see whether its output handle was signalled for reading

Re: [fpc-pascal] Object pascal a Modern Language

2006-03-03 Thread Micha Nelissen
On Fri, 3 Mar 2006 18:28:40 +0100 (Romance Standard Time) Michael Van Canneyt [EMAIL PROTECTED] wrote: Most people out there probably think of Pascal as still being in the state it was in when Niklaus Wirth first designed it. Object Pascal to date is fully OOP, and misses nothing that C#,

Re: [fpc-pascal] Object pascal a Modern Language

2006-03-03 Thread Micha Nelissen
On Fri, 3 Mar 2006 19:14:41 +0100 (Romance Standard Time) Michael Van Canneyt [EMAIL PROTECTED] wrote: That's simply not true. C++ has multiple inheritance, Solved by interfaces in a much cleaner way. That doesn't solve the same problem. MI is much more powerful, but also much more complex,

Re: [fpc-pascal] When are used units recompiled?

2006-04-05 Thread Micha Nelissen
Tom Verhoeff wrote: Can someone explain to me under what circumstances FPC will (attempt to) recompile a unit for which *.ppu and *.o are already available? I couldn't find this in the documentation. Wrong target (OS) or incompatible compiler version, usually. Vote for:

Re: Re[2]: [fpc-pascal] When are used units recompiled?

2006-04-05 Thread Micha Nelissen
On Wed, 5 Apr 2006 18:37:27 +0200 (CEST) Michael Van Canneyt [EMAIL PROTECTED] wrote: You really don't expect the average newbie (to freepascal) programmer to read the error message Can't find unit FOO and then expect him to *guess* he has to use -vu ?!?! Of course I do. What else do we

Re: Re[2]: [fpc-pascal] When are used units recompiled?

2006-04-05 Thread Micha Nelissen
On Wed, 5 Apr 2006 19:27:07 +0200 (CEST) Michael Van Canneyt [EMAIL PROTECTED] wrote: On Wed, 5 Apr 2006, Micha Nelissen wrote: I don't agree: RTFM is *not* an excuse for insightful, to-the-point, clear, not too elaborate error messages. Yes, and the 'elaborateness' is controlled

Re: Re[2]: [fpc-pascal] When are used units recompiled?

2006-04-06 Thread Micha Nelissen
On Thu, 6 Apr 2006 11:15:49 +0200 (CEST) Michael Van Canneyt [EMAIL PROTECTED] wrote: On Wed, 5 Apr 2006, Micha Nelissen wrote: I'm not saying people shouldn't read manuals...just saying that Can't find unit can be split up in 3 or so causes, and a more helpful message given for each

Re: [fpc-pascal] another fpc RAD: MSEide

2006-04-19 Thread Micha Nelissen
L505 wrote: MSEgui has a distinct advantage over Lazarus. It compiles under Delphi. Just tried it. Fiddled with one or two lines in the code, but I got the IDE to compile and run and then built a small hello world app that also ran. Pretty impressive really. And the exe's/elf's it generates

Re: [fpc-pascal] another fpc RAD: MSEide

2006-04-19 Thread Micha Nelissen
Vincent Snijders wrote: It can see the advantages and they should not be diminished: - having different compilers to confirm or exclude a compiler bug. Debugging FPC by using Lazarus is stupid and overkill IMHO ;-). - The cycle, code, compile, run, debug, code is quicker on Delphi, (if you

Re: [fpc-pascal] another fpc RAD: MSEide

2006-04-19 Thread Micha Nelissen
On Wed, 19 Apr 2006 10:42:05 +0100 Matt Emson [EMAIL PROTECTED] wrote: debugger, fine. However do not blame your dislike of the Delphi debugger on your personal debugging preferences. I've been using Delphi commercially since 1998, or there abouts, and the debugger is perfectly acceptable. The

  1   2   >