Re: [fpc-pascal] Const attributes

2017-07-31 Thread Felipe Monteiro de Carvalho
ght be a lot of work to check and make sure that in each possible execution path inside the constructor the field can only be set once, I would be happy to have a final implementation which doesn't do this detail. -- Felipe Monteiro de Carvalho ___ fpc-pas

Re: [fpc-pascal] Const attributes

2017-07-31 Thread Felipe Monteiro de Carvalho
don't know what Java or other languages > with final fields allow here) Java final fields can only be set in constructors (and only once in each constructor, but I guess it isn't necessary to immitate this part). -- Felipe Monteiro de Carvalho ___ f

Re: [fpc-pascal] Food for thought - language string improvement

2017-07-10 Thread Felipe Monteiro de Carvalho
hypotetical try-with-resources in Pascal. Something like: try ( stringList := TStringList.Create; otherObj := TSomeOtherClass.Create; ) code here except exception block, optional end; And any object in the () section would be auto-freed, auto-checking if it was already created or not. -- Fel

Re: [fpc-pascal] Food for thought - language string improvement

2017-07-10 Thread Felipe Monteiro de Carvalho
e. Anyway C++ guys claim that templates are faster than Java generics, I'm just repeating what I heard. If they aren't faster, then Java has better generics, because they are easier to use and debug. -- Felipe Monteiro de Carvalho ___ fpc-pascal mail

Re: [fpc-pascal] Food for thought - language string improvement

2017-07-10 Thread Felipe Monteiro de Carvalho
jects than Java. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Food for thought - language string improvement

2017-07-08 Thread Felipe Monteiro de Carvalho
ltiple-inheritance, would be extremely useful in Lazarus) 2> Try with resources like in Java -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fpGUI on macOS

2017-06-09 Thread Felipe Monteiro de Carvalho
the IDE. You can use the IDE with Carbon for now (until Cocoa is good enough), but for personal projects I recommend Cocoa, unless you are affected by a missing functionality or something. -- Felipe Monteiro de Carvalho ___ fpc-pascal maill

Re: [fpc-pascal] Browser and exe

2017-05-23 Thread Felipe Monteiro de Carvalho
how it is done. But it can be done, I know that Banco Itau does this, but I don't know what exactly they use. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Browser and exe

2017-05-23 Thread Felipe Monteiro de Carvalho
in html/javascript which is served to the web browser. In the past there was stuff like ActiveX and a Java similar, but nowadays they are pretty much all deprecated sometimes even unsupported at all, people should use html+javascript for web interfaces. -- Felipe Monteiro de Carvalho

Re: [fpc-pascal] FPC Graphics options?

2017-05-21 Thread Felipe Monteiro de Carvalho
no way to pass parameters by reference, accessing operating system APIs is a nightmare which involves writing large JNI wrappers in C...etc. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC Graphics options?

2017-05-12 Thread Felipe Monteiro de Carvalho
e I guess C# is the least safe, but C++ and Java look deeply entrenched. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Vehicle management

2017-05-11 Thread Felipe Monteiro de Carvalho
t is for OpenGL). I never used approach 2 and dont plan on using it. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Vehicle management

2017-05-08 Thread Felipe Monteiro de Carvalho
ere: http://wiki.lazarus.freepascal.org/Android_Programming -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Language constructs and types that dependent upon system unit

2017-01-19 Thread Felipe Monteiro de Carvalho
t stuff that fails when they fail, not beforehand suppose they won't work. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Drawing bitmap by pixel

2017-01-19 Thread Felipe Monteiro de Carvalho
geCanvas adding convenience functions for example for alpha blending among other stuff. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Blind Users

2016-10-27 Thread Felipe Monteiro de Carvalho
in general and specifically about adding accessibility to custom control (non-native ones) in the LCL: http://wiki.lazarus.freepascal.org/LCL_Accessibility -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

[fpc-pascal] NSTextStorage.paragraphs

2016-09-27 Thread Felipe Monteiro de Carvalho
this: function paragraphs: NSArray; message 'paragraphs'; I am just wondering why it isn't added in the default bindings and how to add it myself. thanks, -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] Free Delphi 10.1 Berlin Starter Edition

2016-08-24 Thread Felipe Monteiro de Carvalho
On Wed, Aug 24, 2016 at 2:12 PM, Ralf Quint <freedos...@gmail.com> wrote: > Negative. I downloaded and installed it just fine on Windows 8.1/64... Anyone knows if Windows 7 would also work? -- Felipe Monteiro de Carvalho ___ fpc-pascal

Re: [fpc-pascal] Free Delphi 10.1 Berlin Starter Edition

2016-08-23 Thread Felipe Monteiro de Carvalho
"Offer valid from August 22nd 2016 to September 9th 2016" So people interested should be aware of this time limit. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-b

Re: [fpc-pascal] Compatibility of very similar generic types

2016-08-18 Thread Felipe Monteiro de Carvalho
is. If the type is TSomeClass or a descendent, then it will write each field of the class to the stream. But in a generic class/function there is no way to ask if T is an int, or is an TSomeClass, or am I missing some way of writing code that is different for various possible types? thanks, -

[fpc-pascal] Compatibility of very similar generic types

2016-08-18 Thread Felipe Monteiro de Carvalho
n some future compiler version or something, or while not recommended I am correct that there is no real reason why it could possibly fail. Considering my points above? thanks, -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-

Re: [fpc-pascal] Hello, I suggest that you change the TFPGMap in fgl.

2016-07-19 Thread Felipe Monteiro de Carvalho
Hello, You could always send a patch with a TFPGHashedMap or TFPGRedBlackMap implementation. thanks, -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc

[fpc-pascal] heaptrc and high RAM usage

2016-03-30 Thread Felipe Monteiro de Carvalho
88" isn't very helpful, if it uses only 88 bytes it surely can't be the guilty one. Any ideas if I should try something else instead of heaptrc? Or any other ideas about what to do? thanks, -- Felipe Monteiro de Carvalho ___ fpc-pascal mai

Re: [fpc-pascal] cwstrings unit and UTF8Decode()

2016-03-25 Thread Felipe Monteiro de Carvalho
m stuff. More reliable, more cross-platform and some routines actually are several times faster than system ones. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] cwstrings unit and UTF8Decode()

2016-03-25 Thread Felipe Monteiro de Carvalho
On Fri, Mar 25, 2016 at 2:01 PM, Michael Van Canneyt <mich...@freepascal.org> wrote: > Look at the sources Which proves me right, or do I miss something? -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal

Re: [fpc-pascal] cwstrings unit and UTF8Decode()

2016-03-25 Thread Felipe Monteiro de Carvalho
member, lazutf8 doesn't depending on cwstring for (most?) of its funcionality. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Smartphone apps in FPC

2016-03-18 Thread Felipe Monteiro de Carvalho
possible visual remote-debugging > from Lazarus (but that requires many IDE modifications). wow, any link describing how to achieve that? -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] EDatabaseError on SELECT

2016-02-10 Thread Felipe Monteiro de Carvalho
uery.Open; // <- EDatabaseError I tested with sqlite3 command line and the same statement issues no syntax error ... Any ideas??? lTableName = Header_0 UINT32_ID_SINGLE_ROW_TABLE=0 thanks, -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] EDatabaseError on SELECT

2016-02-10 Thread Felipe Monteiro de Carvalho
On Wed, Feb 10, 2016 at 12:45 PM, Michael Van Canneyt <mich...@freepascal.org> wrote: > Did you try clearing SQL first ? What do you mean? -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal

Re: [fpc-pascal] EDatabaseError on SELECT

2016-02-10 Thread Felipe Monteiro de Carvalho
Result in sqlite3 console: sqlite> SELECT * FROM "Header_0" WHERE ID=0; 0|0|0|0|18| -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Format and Cardinal

2016-02-10 Thread Felipe Monteiro de Carvalho
Hello, lol, thanks for the comprehensive reply, if no one objects I will add a note about this in http://www.freepascal.org/docs-html/rtl/sysutils/format.html -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] EDatabaseError on SELECT

2016-02-10 Thread Felipe Monteiro de Carvalho
On Wed, Feb 10, 2016 at 1:20 PM, Michael Van Canneyt <mich...@freepascal.org> wrote: > You used sql.add. Did you do sql.clear first ? > Otherwise you'll be sending 2 sql statements as 1. ok, that fixed the issue, thanks! -- Felipe Monteiro

Re: [fpc-pascal] EDatabaseError on SELECT

2016-02-10 Thread Felipe Monteiro de Carvalho
-- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Format and Cardinal

2016-02-10 Thread Felipe Monteiro de Carvalho
Hello, Why does this trigger an range check exception: var lNum: Cardinal; lStr: string; begin lNum := High(Cardinal); lStr := Format('Num=%u', [lNum]); Format doesn't support integer numbers above High(Integer) ? I really need to use IntToStr? thanks, -- Felipe Monteiro de Carvalho

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-04 Thread Felipe Monteiro de Carvalho
r Delphi to support this, say, in the next version? > The same applies to the ARC objects. What's that? -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-04 Thread Felipe Monteiro de Carvalho
about it, it sounded like core is completely against any implementation. While actually simply no-one is working on the desired solution, which are 2 very different things. > "if then" is a statement. This is a clear and unambiguous rule. The idea

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-04 Thread Felipe Monteiro de Carvalho
Disappointed :( Why was it done? I thought that pretty much everyone was in favor? It isn't very pascalish, that's true, but we could implement it like the proposed "inline if A then B else C" syntax... which is very pascalish and cool. thanks, -- Felipe Monteiro d

Re: [fpc-pascal] New feature: IfThen() intrinsic

2016-02-02 Thread Felipe Monteiro de Carvalho
If other people already use "iif" then maybe it is better to use the same name? Also I vaguely remember at least a few functions in existing code named IfThen which would conflict with the new one. But "iif", well I never saw anyone name a function like that... -- Felipe

Re: [fpc-pascal] New feature: IfThen() intrinsic

2016-02-01 Thread Felipe Monteiro de Carvalho
So finally we have the ternary operator in Pascal? This will simplify converting from C to Pascal. > j ;= IfThen(i < 32, 48, 21); I guess this is a typo and should be ":=" instead of ";=" thanks, -- Felipe Monteiro de Carvalho

Re: [fpc-pascal] Read JSON from file

2015-08-07 Thread Felipe Monteiro de Carvalho
On Fri, Aug 7, 2015 at 8:33 AM, Michael Van Canneyt mich...@freepascal.org wrote: As it happens, I have yesterday committed an extension which allows you to specify that the JSON supports comments. Both // and /* */ are detected and discarded. Great! =) -- Felipe Monteiro de Carvalho

Re: [fpc-pascal] Read JSON from file

2015-08-06 Thread Felipe Monteiro de Carvalho
lParser.Strict := False; lData := lParser.Parse; finally lParser.Free; lStream.Free; end; Well, in my particular case I use TStringList because I pre-process the data, removing comments which are not allowed in JSON. -- Felipe Monteiro de Carvalho

[fpc-pascal] fpcanvas and alpha-blending

2015-07-29 Thread Felipe Monteiro de Carvalho
if this is desirable... and brush has no mode. thanks, -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] jsonrtti and integer arrays

2015-07-08 Thread Felipe Monteiro de Carvalho
of an object? A non-rtti simple example would also be good, since it looks like that the rtti version cannot read arrays. thanks, -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin

Re: [fpc-pascal] Google Code closing down

2015-03-14 Thread Felipe Monteiro de Carvalho
it shouldn't matter, should it? Sourceforge writes that you can't export crypto tech to some countries, but I don't remember anything else other than that. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] cocoa programming without objective-pascal mode

2014-11-02 Thread Felipe Monteiro de Carvalho
that is each time less Pascal friendly, and for that matter also each time less C/C++/Java friendly. Apple wants you to use Swift (or whatever it's called). -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

[fpc-pascal] console gdb in mac

2014-09-07 Thread Felipe Monteiro de Carvalho
will be involved here =) In particular, let's say I am here: procedure TControl.SetParent(NewParent: TWinControl); begin if FParent = NewParent then exit; --- here How can I read the value of field FParent which is located in object Self ? thanks, -- Felipe Monteiro de Carvalho

Re: [fpc-pascal] console gdb in mac

2014-09-07 Thread Felipe Monteiro de Carvalho
On Sun, Sep 7, 2014 at 5:19 PM, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: I'm trying to debug lcl-cocoa, but the debugger in the IDE is not helping (not stopping in breakpoints inside the LCL, can't read variable names, etc...) Well, I see now that IDE debugging

Re: [fpc-pascal] Android/JNI control example

2014-04-24 Thread Felipe Monteiro de Carvalho
creating buttons in Pascal. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] JNI/Android: Java events calling pascal code

2014-04-23 Thread Felipe Monteiro de Carvalho
) -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: read cells contents from .xls file

2013-10-02 Thread Felipe Monteiro de Carvalho
Why cant you download the latest FPC? -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: read cells contents from .xls file

2013-10-02 Thread Felipe Monteiro de Carvalho
your project which uses fpspreadsheet: 1 Path to fpspreadsheet 2 Path to lazutils (located in the folder lazarus/components/lazutils) You need to download Lazarus to have lazutils, but you don't have to use it as an IDE. Felipe Monteiro de Carvalho On Wed, Oct 2, 2013 at 1:09 PM, John Lee johnel

Re: [fpc-pascal] read cells contents from .xls file

2013-10-01 Thread Felipe Monteiro de Carvalho
bullets or some idea what I need to do eg to read the no or string in eg cell x23 of sheet jim in fred.xls. John On 30 September 2013 16:38, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: You mean like this library does? http://wiki.freepascal.org/FPSpreadsheet

Re: [fpc-pascal] read cells contents from .xls file

2013-09-30 Thread Felipe Monteiro de Carvalho
You mean like this library does? http://wiki.freepascal.org/FPSpreadsheet Felipe Monteiro de Carvalho On Mon, Sep 30, 2013 at 5:33 PM, John Lee johnel...@gmail.com wrote: File produced by excel 2003. Can anyone tell me the basic ideas, formats, pitfalls - I'd just like to write a short routine

Re: [fpc-pascal] Android and cwstring

2013-08-01 Thread Felipe Monteiro de Carvalho
is that they should not be used. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Android and cwstring

2013-07-31 Thread Felipe Monteiro de Carvalho
in the Lazarus source tree, here: http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/components/lazutils/paswstring.pas?view=markuprevision=41389root=lazarus You can copy it to your project and use it. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc

Re: [fpc-pascal] Sockets?

2013-07-17 Thread Felipe Monteiro de Carvalho
Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] OT: Re: http://www.freepascal.org/future.var

2013-07-05 Thread Felipe Monteiro de Carvalho
On Fri, Jul 5, 2013 at 11:27 AM, Noah Silva shir...@galapagossoftware.com wrote: I (can) and (will not) ... This interpretation is wrong. For the sentence to mean this, it would need to be worded like this: I can, but will not ... -- Felipe Monteiro de Carvalho

Re: [fpc-pascal] can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware?

2013-06-13 Thread Felipe Monteiro de Carvalho
it in the command line just to see if it runs. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Some RTL functions cry big tears when mixing Pchar and Ansistring/String

2013-06-11 Thread Felipe Monteiro de Carvalho
to reading the entire code base again ... until I found the error. Running in a different operating system also helps, sometimes it debugs better in another OS. Sometimes it even works fine in another OS, despite the error being present at all times =D -- Felipe Monteiro de Carvalho

[fpc-pascal] Android JNI failing in Galaxy S4

2013-05-22 Thread Felipe Monteiro de Carvalho
, lets see. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Re: Android JNI failing in Galaxy S4

2013-05-22 Thread Felipe Monteiro de Carvalho
On Tue, May 21, 2013 at 5:47 PM, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: My only idea at the moment is to do the static export too... maybe that will work, lets see. No, that didn't help anything =( -- Felipe Monteiro de Carvalho

[fpc-pascal] Re: Android JNI failing in Galaxy S4

2013-05-22 Thread Felipe Monteiro de Carvalho
Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: Android JNI failing in Galaxy S4

2013-05-22 Thread Felipe Monteiro de Carvalho
which can be utilized as examples to learn how to use JNI. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: Android JNI failing in Galaxy S4

2013-05-22 Thread Felipe Monteiro de Carvalho
to be compiled for arm-android of course. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: Xcode

2012-09-17 Thread Felipe Monteiro de Carvalho
by issues which involve the templates. But like Jonas said you may need aditional steps to install command line tools in newer Xcode versions. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

[fpc-pascal] Constant of 2D array

2012-09-11 Thread Felipe Monteiro de Carvalho
array only. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Constant of 2D array

2012-09-11 Thread Felipe Monteiro de Carvalho
On Tue, Sep 11, 2012 at 2:58 PM, Vincent Snijders vincent.snijd...@gmail.com wrote: const number_return_map: array[0..7,0..7] of byte = Ah, nice, thanks =) Now it works... and the syntax is almost the same as in C++ which facilitates the conversion -- Felipe Monteiro de Carvalho

Re: [fpc-pascal] (no subject)

2012-02-24 Thread Felipe Monteiro de Carvalho
I think that you just described class methods: http://www.freepascal.org/docs-html/ref/refsu27.html -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] dbus in Pascal

2012-02-22 Thread Felipe Monteiro de Carvalho
Hello, I haven't touched in dbus in ages, so I was wondering how people are using it. Did anyone write a wrapper around libdbus for Lazarus or is everyone using directly libdbus or something like dbus-glib? Do we have bindings for dbus-glib already translated? thanks, -- Felipe Monteiro de

Re: [fpc-pascal] dbus in Pascal

2012-02-22 Thread Felipe Monteiro de Carvalho
in seeing this How do you get messages with this library? You need to call something periodically? I always thought that dbus needs integration with the application loop. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-21 Thread Felipe Monteiro de Carvalho
FPC version are you using? Those errors occured for me in FPC 2.4.* but disappeared in FPC 2.6.0 FPC 2.7.1 introduced new errors =) -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-21 Thread Felipe Monteiro de Carvalho
vary then. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] level curve and surface generation code

2012-02-20 Thread Felipe Monteiro de Carvalho
better to OpenGL. thanks, -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: level curve and surface generation code

2012-02-20 Thread Felipe Monteiro de Carvalho
=) -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: Working Free Pascal android JNI example

2012-02-13 Thread Felipe Monteiro de Carvalho
Hello, For asking Android questions I recommend the Lazarus forum: http://www.lazarus.freepascal.org/index.php/board,43.0.html -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org

Re: [fpc-pascal] What ARM targets are supported by FPC?

2012-02-08 Thread Felipe Monteiro de Carvalho
to platform like directfb via LCL-CustomDrawn: See http://wiki.lazarus.freepascal.org/Custom_Drawn_Interface It was specially designed to run in a system such a the framebuffer, which is very similar to what Android for example offers: Only a raw surface. -- Felipe Monteiro de Carvalho

Re: [fpc-pascal] Problem using make install in Windows

2012-02-07 Thread Felipe Monteiro de Carvalho
Thanks, you were right =) But strange that it considered my \ a space. I know that \ is a escaping for a space, but there was no space in the end. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

[fpc-pascal] Problem using make install in Windows

2012-02-06 Thread Felipe Monteiro de Carvalho
: *** [install] Error 2 I see the space between \dest and \examples but I dont see how it is something that I did wrong, or else it should fail in the RTL too. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] TStringStream.DataString returns garbage?

2012-02-03 Thread Felipe Monteiro de Carvalho
would suggest is using a more clear wording. AsText might be hard to understand what the author ment. Either with the length or without it is still text in a certain way. A more clear wording could be: AWriteTextContentsOnly: Boolean = False or AWriteStringLength: Boolean = True -- Felipe Monteiro de

Re: [fpc-pascal] libQT4Pas - Why it is needed?

2012-01-29 Thread Felipe Monteiro de Carvalho
to anything directly. It requires a special format using plain procedures in a special way, so it is like a C interface, or a plan Pascal procedural interface. It is called JNI and it will never accept C++ -- Felipe Monteiro de Carvalho ___ fpc-pascal

[fpc-pascal] fpdoc links and short description

2012-01-27 Thread Felipe Monteiro de Carvalho
, for example. Is this a bug or should it work like this? Is it possible to link the short description too? How? thanks, -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo

Re: [fpc-pascal] fpdoc links and short description

2012-01-27 Thread Felipe Monteiro de Carvalho
On Fri, Jan 27, 2012 at 11:06 AM, michael.vancann...@wisa.be wrote: Most likely a bug, please report it. umm, now I have rebuilt the docs and it obtained the short description in the top-level view. I think I was using an old version of fpdoc ... -- Felipe Monteiro de Carvalho

Re: [fpc-pascal] fpdoc links and short description

2012-01-27 Thread Felipe Monteiro de Carvalho
) but it will not copy the short description to the class overview. But it does that if I link like this: element name=TRadioGroup.OnSelectionChanged link=#lcl.ExtCtrls.TCustomRadioGroup.OnSelectionChanged short/ descr/ seealso/ /element -- Felipe Monteiro de

[fpc-pascal] Converting header with va_list

2012-01-18 Thread Felipe Monteiro de Carvalho
Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Converting header with va_list

2012-01-18 Thread Felipe Monteiro de Carvalho
); And this worked for me sending a pointer to the first element of a pascal static Array in the parameter Args. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Postscriptcanvas

2012-01-17 Thread Felipe Monteiro de Carvalho
, as normally done. LCL applications do not need to be visual, just make an application without any forms. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Advanced Records - Why not available by default?

2012-01-17 Thread Felipe Monteiro de Carvalho
, then noone would have written the code to support them in the first place) And if you dont like them, you dont need to use them. The LCL rarely uses newer compiler features. I would say the same for most code in the FCL. -- Felipe Monteiro de Carvalho

Re: [fpc-pascal] Re: Help!!

2012-01-17 Thread Felipe Monteiro de Carvalho
If the use case is closing the main form without quitting the application, then I would prefer a property TApplication.QuitApplicationWhenMainFormCloses or something like that. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] Postscriptcanvas

2012-01-17 Thread Felipe Monteiro de Carvalho
requirements using the LCL is probably not necessary. If you are targeting only linux then you can probably use a command line execution to print the file. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] Postscriptcanvas

2012-01-17 Thread Felipe Monteiro de Carvalho
-- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Postscriptcanvas

2012-01-15 Thread Felipe Monteiro de Carvalho
On Fri, Jan 13, 2012 at 3:31 PM, David Copeland david.copel...@jsidata.ca wrote: Is it possible to use the PostScriptCanvas unit in a non-gui program? For drawing or for printing? -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] Re: Finished full JVM Android application

2012-01-03 Thread Felipe Monteiro de Carvalho
-Android. LCL-CustomDrawn-Android is native and communicates via JNI with the Android Java APIs. And I don't see any reason to change it into using the JVM port even in a remote future, because it already works great. -- Felipe Monteiro de Carvalho ___ fpc

Re: [fpc-pascal] Meego Harmattan (Nokia N9) and fpc

2011-12-24 Thread Felipe Monteiro de Carvalho
I read here that this should be doable with an FPC option to pass an assembler option, but I never used that. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc

Re: [fpc-pascal] where are the sources for rtl.chm, fcl.chm ref.chm etc.?

2011-12-24 Thread Felipe Monteiro de Carvalho
felipe staff 1623 8 Nov 21:17 build_lcl_docs.lpi -rwxr-xr-x 1 felipe staff 3048 12 Ago 09:22 build_lcl_html.sh -rw-r--r-- 1 felipe staff 2253 8 Nov 21:17 fpdoc.css ... -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc

Re: [fpc-pascal] Timer in X11

2011-12-22 Thread Felipe Monteiro de Carvalho
() the application could hang in some corner cases. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Timer in X11

2011-12-22 Thread Felipe Monteiro de Carvalho
seriously doubt the battery usage concerns unless someone really measures it. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Timer in X11

2011-12-21 Thread Felipe Monteiro de Carvalho
the best approach would be to solve this. thanks, -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Timer in X11

2011-12-21 Thread Felipe Monteiro de Carvalho
use it. But what do you mean exactly? Using the timeout 50? -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Timer in X11

2011-12-21 Thread Felipe Monteiro de Carvalho
and then I could use it to implement a precise TTimer support in LCL-CustomDrawn-X11. If not, then it will stay like it is now until someone sends a patch to improve it. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] Why is Random(255) some 529x slower compared to Delphi 7?

2011-12-09 Thread Felipe Monteiro de Carvalho
not be utilized for encryption... -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

  1   2   3   4   5   6   7   8   >