Am 23.12.2016 12:54 schrieb "Graeme Geldenhuys" <
mailingli...@geldenhuys.co.uk>:
>
> On 2016-12-23 08:14, Bo Berglund wrote:
> > Is there a quick way to split a string of whitespace separated values
> > into the separate members?
>
>
> That problem is perfectly suited for regular expressions. And
Am 14.12.2016 14:31 schrieb "Lars" :
> I think I once thought, can I make an "array of array of const" to try to
> expand on the power of array of const. Which seems like a silly idea, but
> academically interesting. Also, Varients are related to general
> programming (generic). But no one likes va
Am 14.12.2016 12:59 schrieb "Graeme Geldenhuys" <
mailingli...@geldenhuys.co.uk>:
>
> On 2016-12-14 10:14, Sven Barth wrote:
> >> > enough in HTML enough. But that's not really a real point, that's
just a
> >> > pet peeve to deal with..
Am 14.12.2016 08:35 schrieb "Lars" :
> But I don't know enough about fps generics to know if stuff needs to be
> forced into a class, as I have to start using generics and testing it out
> to really know. From what I've seen though, I'm certainly not and have
> never been a fan of less than and gre
Am 14.12.2016 08:09 schrieb "Lars" :
> A general purpose function that handles multiple types of arrays without
> rewriting the code for each array type looks like this:
>
> procedure AddItemToArray(
> const item: {$I T.inc}; var arr: {$I TArr.inc}); overload;
> var len: integer;
>
Am 09.12.2016 10:05 schrieb "Graeme Geldenhuys" <
mailingli...@geldenhuys.co.uk>:
> The most widely used image editing software for X11 based
> systems, The GIMP, doesn't even support 16bit color channel images.
If I remember correctly the next major version of The GIMP is supposed to
support 16-b
Am 08.12.2016 05:14 schrieb "Lars" :
>
> On Mon, December 5, 2016 4:46 am, Dennis Poon wrote:
> >
>
> >
> > Lars wrote:
> >
> >> Do you know about this feature:
> >>
> >>
> >> var SomeRec: TSomeRecord = ();
> >>
> > This is good for global variable.
> > But I wonder whether it has effect in procedu
On 21.11.2016 02:05, Le Duc Hieu wrote:
> Is there any entry on Mantis for me to keep track of this bug status?
I've fixed that bug now (it did already work in mode Delphi by the way),
so now you can use this:
=== code begin ===
type
generic TGList = record
public type
PGList = ^speciali
On 02.12.2016 08:22, Ryan Joseph wrote:
> Yes but the problem is doing this with generics. :) That’s where I got stuck
> and I don’t think it’s possible.
Ah, yes, right, sorry. Attached is a corrected version :)
Regards,
Sven
program trecenum;
{$mode objfpc}
{$modeswitch advancedrecords}
type
Am 05.12.2016 12:01 schrieb "denisgolovan" :
>
>
> 05.12.2016, 13:35, "Sven Barth" :
>>
>> I really don't get why some people think of generics as complex -.-
>
>
> Exactly for the cited reason. See below.
>
> > Using plain old array
Am 05.12.2016 11:01 schrieb "Lars" :
> With data structures like this it does seem people are reinventing it,
> especially when people use a TStringList to store integers (I have done
> this before, a shame indeed, bad programming practice)... Or complex
> generics which just seems like over engine
Am 05.12.2016 08:24 schrieb "Dennis" :
>
> In this old statement, I don't need to know the type of aRecord
> but if I want to use Default, I have to know the exact type of the
varaible aRecord and pass it to Default(aRecordType) e.g. aRecord :=
Default(aRecordType) //where var aRecord : aRecordTy
Am 04.12.2016 11:25 schrieb "Graeme Geldenhuys" <
mailingli...@geldenhuys.co.uk>:
> > Then you should have a look at TFPGList, even if you do not like
> > generics. TFPGList is our approach to extend FPC carefully with
generics.
>
> At the moment I'm using FPC 2.6.4 for the work I'm doing. I can't
On 30.11.2016 12:36, Ryan Joseph wrote:
>
>
>> On Nov 30, 2016, at 6:24 PM, Graeme Geldenhuys
>> wrote:
>>
>> What would you iterate/enumerate in that? I can understand iterating an
>> "array of TMyRec", but not TMyRec itself.
>
> I have a dynamic array inside a record. I’m using a record ins
Am 30.11.2016 05:35 schrieb "Ryan Joseph" :
>
> I have a generic record I would like to enumerate using for..in loops. Is
this even possible? I tried briefly and it wasn’t clear this was possible
so I thought I’d ask first. Thanks.
>
Take a look at packages/fcl-stl/src/gvector.pp, it's a generic v
Am 22.11.2016 12:14 schrieb "Graeme Geldenhuys" <
mailingli...@geldenhuys.co.uk>:
> But to give you an idea of what the above source code will look like in
> other editors. Take my code sample above, replace the spaces with single
> TAB (U+0009) characters. This not only reduces the file size, it a
Am 21.11.2016 18:27 schrieb "Graeme Geldenhuys" <
mailingli...@geldenhuys.co.uk>:
>
> On 2016-11-21 15:52, Stephen Chrzanowski wrote:
> > but I've always preferred mono-spaced fonts in my IDE versus
> > variable width, JUST on the primary basis of legibility of the code
itself,
> > ignoring the 'gr
Am 21.11.2016 08:33 schrieb "Le Duc Hieu" :
>
> Is there any entry on Mantis for me to keep track of this bug status?
No, because I just noticed that there is one when testing for your question
;)
Regards,
Sven
___
fpc-pascal maillist - fpc-pascal@lis
Am 20.11.2016 18:21 schrieb "Pierre Free Pascal" :
>
> Hi,
>
>
> > -Message d'origine-
> > De : fpc-pascal-boun...@lists.freepascal.org [mailto:fpc-pascal-
> > boun...@lists.freepascal.org] De la part de Tony Whyman
> > Envoyé : dimanche 20 novembre 2016 15:13
> > À : FPC-Pascal users discu
Am 20.11.2016 08:31 schrieb "Le Duc Hieu" :
>
> Here is the complete snippet that i wanted to create
>
>
> Type
> generic PGList = ^specialize TGList;
>
> generic TGList = record
> data: T;
> next: specialize PGList
> end;
You'll need to use nested types (they require modeswitch adva
Am 12.11.2016 04:46 schrieb "Ryan Joseph" :
>
>
> > On Nov 12, 2016, at 3:22 AM, Jonas Maebe
wrote:
> >
> > You're passing a class, not an object. Passing a class that implements
an interface to a method that expects that interface should work fine.
Converting a class instance to an interface that
Am 11.11.2016 15:16 schrieb "Graeme Geldenhuys" <
mailingli...@geldenhuys.co.uk>:
>
> On 2016-11-11 10:52, Tony Whyman wrote:
> > Someone else may correct me, but with CORBA, I believe you have to
> > explicitly add a function to the interface such as
> >
> > function GetObject: TMyObject;
>
>
> I
Am 10.11.2016 04:30 schrieb "African Wild Dog" :
>
> 2016-11-07 14:15 GMT-02:00 Sven Barth :
>>
>> Am 07.11.2016 15:58 schrieb "African Wild Dog" :
>> > It is intended to change such compiler behavior in the future? It is
incompatible with Delphi and
Am 07.11.2016 15:58 schrieb "African Wild Dog" :
> It is intended to change such compiler behavior in the future? It is
incompatible with Delphi and moreover it force us to break the
encapsulation of the Generic types.
I can't answer this without you providing an example that fails.
Regards,
Sven
Am 30.10.2016 20:14 schrieb "Jonas Maebe" :
>
> José Mejuto wrote:
> > Today I had detected that some emails does not reach me in this mailing
> > list, in fact the last ones from "leledumbo" about JSON parsing, but
> > Graeme and Michael ones arrive successfully
>
> It's because Yahoo publishes ma
On 30.10.2016 16:43, José Mejuto wrote:
> Hello,
>
> Today I had detected that some emails does not reach me in this mailing
> list, in fact the last ones from "leledumbo" about JSON parsing, but
> Graeme and Michael ones arrive successfully
>
Same here...
Regards,
Sven
Am 17.10.2016 17:11 schrieb "Martin Schreiber" :
>
> On Monday 17 October 2016 15:30:36 Graeme Geldenhuys wrote:
> > On 2016-10-17 13:55, fredvs wrote:
> > > So it seems that garbage collection must be enabled to do a smartlink.
> >
> > I'm not sure I follow you. From what I understand from the FPC
Am 15.10.2016 17:39 schrieb "Snorkl e" :
>
> Sven,
> Just a fyi, the mantis bug report form would not let me pick a Severity
so its showing up as minor.
Thank you for reporting the bug.
Yes, we've disabled the severity, cause the severity we assume is not
usually the severity of the user.
Regards
Am 15.10.2016 09:52 schrieb "Snorkl e" :
>
> Sven,
> Your idea worked. I downloaded the FPC source and made that change and
then built everything to another directory.
> modified the fpc.cfg to not point to the FPC dir in the Lazarus folder
and made the path changes in the Lazarus IDE.
> Compiled
Am 14.10.2016 20:31 schrieb "Snorkl e" :
>
> Yep, I used heaptr, my code is clean.
> Sometimes it would happen after 3 connects/disconnects and sometimes
after 500.
> With the GUID as the event name it has never happened again and I really
stress tested it.
>
> It sounds like windows bug to me, but
Am 14.10.2016 17:45 schrieb "Snorkl e" :
>
> Hi, actually getlasterror only applies to the calling thread,
getlastOSerror is the one not to use.
GetLastOSError merely calls GetLastError on Windows...
> Anyway I think I found the solution.
> Just for kicks I put in a name with a / I.e /test_name a
Am 13.10.2016 15:07 schrieb "Graeme Geldenhuys" <
mailingli...@geldenhuys.co.uk>:
>
> On 2016-10-13 13:48, Sven Barth wrote:
> > That won't help with Halt() however as that will "jump" directly to the
> > unit finalization, ignoring any and all exce
Am 13.10.2016 10:09 schrieb "Graeme Geldenhuys" <
mailingli...@geldenhuys.co.uk>:
>
> On 2016-10-12 20:37, grouchysmurf wrote:
> > Say, I have a code, where TH is a Class(TCustomApplication):
> >
> > ph := TH.Create(Nil);
> > ph.Initialize;
> > ph.ProcessOptions;
> > ph.Run;
> > ph.Free;
Am 11.10.2016 19:57 schrieb "Tony Whyman" :
>
> What's the timetable for the next release? Can we assume that all of
"trunk" will be in it or will it be more nuanced?
The next release will be 3.0.2 (soonish) which will contain quite some
fixes compared to 3.0.0, but definitely not everything and m
Am 11.10.2016 10:35 schrieb "Ryan Joseph" :
> Ok, I did some more research and found that fpc is at
c:\lazarus\fpc\2.6.4\bin\i386-win32 and a “dir” command shows there is a
fpc.exe that works. Note just “fpc” doesn’t work so I guess I need to add
that myself but I’m struggling trying to figure out
Am 09.10.2016 00:13 schrieb "Graeme Geldenhuys" <
mailingli...@geldenhuys.co.uk>:
>
> Hi,
>
> Why doesn't CORBA have the equivalent of IInterface?
Because that interface type doesn't need it, just like TP-style objects
don't need it. IInterface (aka IUnknown) merely exists due to the reference
cou
Am 08.10.2016 22:48 schrieb "Ched" <
charles.edouard.des.vastes.vig...@gmail.com>:
> In http://www.freepascal.org/docs-html/ref/refsu14.html#x37-43.2.8 ,
the stack sized used by a Shortstring is Declared length + 2 . Why not
Declared length + 1 ?
1 Byte length and a zero byte to allow easy con
Am 07.10.2016 17:19 schrieb "Graeme Geldenhuys" <
mailingli...@geldenhuys.co.uk>:
>
> On 2016-10-07 14:38, fredvs wrote:
> > It is extremely sad and I do not understand why to stop 32 bit
development.
>
> But they just recently added support for RaspberryPi. Does that mean
> FreeBSD on RaspberryPi
Am 06.10.2016 17:04 schrieb "Luiz Gonzaga de Oliveira Neto" <
luiz.g.oliveira.n...@gmail.com>:
> Thanks in advance for any help!
As Jonas said we can't provide you with any older compiler, but if you'd
tell us what kind of errors you have maybe we can help you. Perhaps it's
merely something were y
Am 05.10.2016 04:33 schrieb "Michalis Kamburelis" :
>
> Hi,
>
> I'm wondering if there is a tool that checks the correctness of calls
> to Format and friends (like Exception.CreateFmt) in your code. Or does
> someone plan to write one, as an external tool (like a "lint") or
> inside the FPC compile
Am 29.09.2016 11:34 schrieb "Martin Schreiber" :
>
> On Thursday 29 September 2016 10:49:03 Graeme Geldenhuys wrote:
> > On 2016-09-29 06:42, Martin Schreiber wrote:
> > > abcintf:= iabc(abc);
> > > "
> > > which has the best performance.
> >
> > But you must still remember to check if abcintf has
Am 01.09.2016 18:56 schrieb "fredvs" :
>
> > With fpc's -k parameter, you can pass parameters directly to the linker.
> > If you need to pass multiple parameters, use -k several times
> > (e.g.-k-para1 -kvalue1)
>
> Wow, many thanks Jonas.
>
> I will try it and write you the result.
>
> But, imagin
Am 01.09.2016 00:15 schrieb "African Wild Dog" :
> And about GCC? It supports a wide variety of processors and OS.
Why would we want to depend on the behemoth that is GCC as a dependency
when FPC currently only needs an assembler and a linker and on some systems
not even that? That thought can als
Am 31.08.2016 05:12 schrieb "African Wild Dog" :
>
> 2016-08-19 4:55 GMT-03:00 Jonas Maebe :
>>
>> African Wild Dog wrote:
>>
>> > What is the current status of the LLVM backend support?
>>
>> "make cycle" works on my machine for Darwin/x86-64, and most test suite
>> failures (apart from exception
Am 29.08.2016 05:36 schrieb "leledumbo" :
>
> > Type aliases for generics are not supported.
>
> OK, but Delphi seems to support the last 3 variant which creates a generic
> subclass of a specialized generic type:
>
http://stackoverflow.com/questions/10060009/is-it-possible-to-create-a-type-alias-t
Am 28.08.2016 21:15 schrieb "leledumbo" :
>
> but neither of above seems to work. What is the correct way to write
generic
> type aliases? Even if it's not real alias like the last 3, as long as it's
> working, I'm OK.
Type aliases for generics are not supported.
Regards,
Sven
___
Am 24.08.2016 11:22 schrieb "Graeme Geldenhuys" <
mailingli...@geldenhuys.co.uk>:
>
> On 2016-08-24 09:04, brian wrote:
> > you have Windows 10?
>
> What!! Delphi still doesn’t support Linux, FreeBSD, RPi, Solaris, Haiku,
> OS/2, PlayStation, AIX and so forth. That’s no good.
> I'll rather stay wit
Am 23.08.2016 04:24 schrieb "silvioprog" :
>
> Hello,
>
> A possible inline way (without declaring specialized local variables) to
compile the attached test at the issue #30498 is:
>
> ...
> procedure Test(const AItems: TArray);
> begin
> end;
>
> begin
> // Test(['foo', 'bar']); issue #304
;t???/t???/t???/t0t@0t"
>>
>> FPC 3.1.1 revision 34368
>
>
> I suspect this has to do with the additional level of indirection added by
> Sven Barth. I will need to check that.
Best don't use pdynarraytypeinfo as that doesn't correctly handle alignment
either, us
Am 19.08.2016 10:56 schrieb "OBones" :
>
> Sven Barth wrote:
>
>>
>> Am 19.08.2016 09:55 schrieb "Jonas Maebe" mailto:jonas.ma...@elis.ugent.be>>:
>> > As alluded to above, LLVM support needs to be added/tested/maintained
>> > sepa
Am 19.08.2016 13:24 schrieb "Jonas Maebe" :
>
>
> Jonas Maebe wrote on Fri, 19 Aug 2016:
>
>> On 19/08/16 10:51, Sven Barth wrote:
>>>
>>> Why is it that 32-bit targets would be a bit tricky to implement?
>>
>>
>> It's b
Am 19.08.2016 09:55 schrieb "Jonas Maebe" :
> As alluded to above, LLVM support needs to be added/tested/maintained
> separately for each supported architecture and to a lesser extent for
> each supported OS. Right now, I only have plans for x86-64 and AArch64
> (and maybe PowerPC64), on Darwin and
Am 18.08.2016 15:09 schrieb "Felipe Monteiro de Carvalho" <
felipemonteiro.carva...@gmail.com>:
>
> On Thu, Aug 18, 2016 at 2:44 PM, Sven Barth
wrote:
> > generic procedure WriteVector_To_DM(ADest: TDataManager; ASelf:
> > specialize TVector);
> > ge
Am 18.08.2016 10:57 schrieb "Felipe Monteiro de Carvalho" <
felipemonteiro.carva...@gmail.com>:
>
> Hello,
>
> Consider this:
>
> TSubClass1 = class(TSomeClass)...;
> TSubClass2 = class(TSomeClass)...;
>
> TSubClass1Vector = specialize TVector;
> TSubClass2Vector = specialize TVector;
> TSomeClassV
Am 17.08.2016 17:30 schrieb "Maciej Izak" :
>
>
> 2016-08-17 17:15 GMT+02:00 Sven Barth :
>>
>> Couldn't you work around for now by using instance instead of class
variables? At least then the classes would work instead of everyone asking
every second week why
Am 17.08.2016 08:05 schrieb "Maciej Izak" :
>
>
> 2016-08-17 7:05 GMT+02:00 silvioprog :
>>
>> Just try it:
>
>
> related to
>
> http://bugs.freepascal.org/view.php?id=28911
>
> Sven comment: "I won't change the current implementation for now, because
once I'm going to fix this I'm going to fix thi
Am 13.08.2016 19:47 schrieb "silvioprog" :
>
> On Sat, Aug 13, 2016 at 2:31 PM, Sven Barth
wrote:
>>
>> On 13.08.2016 18:38, silvioprog wrote:
>> > My test ({$mode delphi}; FPC from trunk):
>> >
>> > procedure foo(); cdecl; external
On 13.08.2016 18:38, silvioprog wrote:
> My test ({$mode delphi}; FPC from trunk):
>
> procedure foo(); cdecl; external 'foo' name 'foo' delayed;
>
> The compiler error:
>
> "Fatal: Syntax error, ";" expected but "identifier DELAYED" found".
http://bugs.freepascal.org/view.php?id=23637
Regar
Am 12.08.2016 20:40 schrieb "Jonas Maebe" :
>
> On 12/08/16 20:32, Sven Barth wrote:
>>
>> Better don't rely on it then. If at all it would be implemented properly
>> (and for Delphi compatibility it probably will).
>
>
> According to the bug repo
Am 12.08.2016 17:27 schrieb "Luca Olivetti" :
>
> El 12/08/16 a les 17:13, Sven Barth ha escrit:
>
>
>>>
>>> Is this by design or is it just an accident?
>>
>>
>> Accident.
>
>
> Ouch!
> In that case please, don't fix it ;-
Am 12.08.2016 16:52 schrieb "Luca Olivetti" :
>
> I'm still using fpc 2.6.4 (but I tested what I'm saying below with fpc
3.0.0 too).
>
> I need to overload the type of the index of an indexed property, e.g.
>
> function GetMyProp(index:integer):TMyPropType;
> function GetMyProp(index:TMyType):TMyPr
Am 04.08.2016 03:17 schrieb "silvioprog" :
> I got:
>
> 'Error: Identifier not found "TArray"'
>
> So I've fixed it with:
>
> === begin code ===
>
> ...
>
> {$IFDEF FPC}
> TArrayHelper.Sort(ordkeys);
> {$ELSE}
> TArray.Sort(ordkeys);
> {$ENDIF}
>
> ...
>
> === end code ===
>
> So, is this t
On 26.07.2016 21:52, James Richters wrote:
>> An alternative would be NtDelayExecution from unit jwanative. Its interval
> argument is in multiples of 100ns
>> and is essentially what Windows' Sleep() uses internally.
>> Note: The first argument "Alertable" determines whether the function can be
>
On 26.07.2016 19:05, Dmitry Boyarintsev wrote:
> On Tue, Jul 26, 2016 at 12:38 PM, James Richters
> mailto:ja...@productionautomation.net>>
> wrote:
>
> What I need is a timer that I can specify in microseconds, a
> millisecond is too long. I am using it for timing to read in a
> str
Am 25.07.2016 22:52 schrieb "James Richters" :
> I've tried Lazarus, for some reason I can't even get my program to compile
> with Lazarus, I get pages of errors. Maybe I just don't know how to get
> Lazarus into Turbo Pascal Compatible mode..
In your project's settings there is somewhere among t
Am 23.07.2016 02:40 schrieb "Graeme Geldenhuys" <
mailingli...@geldenhuys.co.uk>:
> > I can't figure out how to do that with windows.
>
> You can't with the default console window. You need to download a 3rd
> party console program. They tend to be MUCH better that the stock
> console under Windows
Am 14.07.2016 07:08 schrieb "Bo Berglund" :
>
> I am porting a Delphi2007 utility from Windows to Linux (Raspbian
> Jessie). It uses a unit I have downloaded from the web, which was said
> to support FreePascal too.
>
> But now I am getting a number of missing identifier errors as follows
> Functio
Am 11.07.2016 20:31 schrieb "Michael Van Canneyt" :
>
>
>
> On Mon, 11 Jul 2016, Dmitry Boyarintsev wrote:
>
>> On Mon, Jul 11, 2016 at 1:05 PM, Michael Van Canneyt <
mich...@freepascal.org
>>>
>>> wrote:
>>
>>
>>>
>>> googleapis also does not have an own repository ?
>>>
>>> They don't, but maybe
Am 11.07.2016 17:58 schrieb "Graeme Geldenhuys" <
mailingli...@geldenhuys.co.uk>:
>
> Hi,
>
> Why is FPC WinCE target missing the Windows IsCharAlpha() API
> definition, including some others (I'll try and make a more complete
> list soon).
Probably because it was forgotten to be added... Please f
Am 07.07.2016 10:13 schrieb "Graeme Geldenhuys" <
mailingli...@geldenhuys.co.uk>:
>
> Hi Dennis,
>
> Would you mind explaining what is a “reactive framework”?
http://reactivex.io/
Once we support helpers for interfaces and anonymous functions (and maybe
lambda expressions ^.^ ) one could try to p
Am 02.07.2016 07:55 schrieb "Bo Berglund" :
>
> On Sat, 02 Jul 2016 01:12:34 +0200, Bo Berglund
> wrote:
>
> >The commands I am looking at now are:
> >sudo ifup wlan0
> >sudo ifdown wlan0
> >
> >How could this be accomplished in a FreePascal program running as user
> >Pi?
>
> To be specific I woul
On 26.06.2016 18:20, Jürgen Hestermann wrote:
> Am 2016-06-26 um 14:13 schrieb Sven Barth:
>> But also no word that it is true either, cause you're not declaring a
> variable for the Result.
>
> Of course I am declaring a variable:
>
> function X : String;
>
&g
Am 26.06.2016 12:10 schrieb "Jürgen Hestermann" :
>
> Am 2016-06-26 um 01:19 schrieb Karoly Balogh (Charlie/SGR):
> > No. Local variables are not initialized by default. Managed type or not,
> > doesn't make a difference.
>
> This is not true.
> Local variables of managed types are of course initia
Am 25.06.2016 13:17 schrieb "Jürgen Hestermann" :
>
> Am 2016-06-25 um 09:23 schrieb Maciej Izak:
> > 2016-06-25 5:19 GMT+02:00 Michalis Kamburelis :
> > They were never guaranteed to be initialized to nil.
> > Result has special logic for string, dynamic array, method pointer and
variant (well
Am 25.06.2016 09:23 schrieb "Maciej Izak" :
>
> 2016-06-25 5:19 GMT+02:00 Michalis Kamburelis :
>>
>> They were never guaranteed to be initialized to nil.
>
>
> Result has special logic for string, dynamic array, method pointer and
variant (well documented ;) ):
>
> "For a string, dynamic array, me
Am 21.06.2016 15:21 schrieb "Michalis Kamburelis" :
>
> 2016-06-21 15:03 GMT+02:00 Sven Barth :
> > Am 21.06.2016 12:31 schrieb "Michalis Kamburelis"
> > :
> >> Current FPC defaults:
> >>
> >> - Help people who except the {$mode fpc}
Am 21.06.2016 12:31 schrieb "Michalis Kamburelis" :
> Current FPC defaults:
>
> - Help people who except the {$mode fpc} to be default (so they write
> code without classes and a lot of other new features),
> - Or people who expect that string is by default ShortString (limited
> to 255 chars).
On
Am 21.06.2016 08:58 schrieb "Mr Bee" :
>
> > Maybe a little bit offtopic, but I have a question regarding the
compiler directives: is there a way to tell Lazarus to use these directives
in every new unit?
>
> I even expect a bit further. These {$MODE OBJFPC}, {$H+}, and {$J-}
directives should be t
Am 20.06.2016 17:19 schrieb "Dennis" :
>
> There is no details on
http://www.freepascal.org/docs-html/ref/refsu57.html
There is none by itself (except that "otherwise" is Extended ISO Pascal
compliant). The only visible difference would be if you'd have a
if-statement as last case statement as an
Am 20.06.2016 11:56 schrieb "Mark Morgan Lloyd" <
markmll.fpc-pas...@telemetry.co.uk>:
> There's a few places where a native English author would have done things
a bit differently. For example, in most places "Castle Game Engine" would
probably be prefixed by "the", and also "it allows [something,
On 15.06.2016 18:20, wkitt...@windstream.net wrote:
> On 06/15/2016 10:36 AM, Santiago A. wrote:
>> El 15/06/2016 a las 15:55, wkitt...@windstream.net escribió:
>>>
>>> what is the best/easiest way to increase the size of a set if the set
>>> is defined as the following?
>>>
>>>
>>>const
>>>
Am 15.06.2016 10:15 schrieb "Juha Manninen" :
>
> Are there defines matching the modes in FPC, for example {$mode
delphiunicode} ?
> I want to do something like :
> {$IFDEF delphiunicode}
> ...
> {$ELSE}
> ...
> {$ENDIF}
There are. They are FPC_, though DelphiUnicode seems to be
miss
Am 10.06.2016 07:36 schrieb "Jürgen Hestermann" :
>
> Am 2016-06-09 um 20:18 schrieb Sven Barth:
>
> > Am 09.06.2016 17:57 schrieb "Vojtech Cihák" :
> > > aBuffer.Clear;
> > > Is it possible to do this without helper?
> >
> > You c
Am 09.06.2016 17:57 schrieb "Vojtěch Čihák" :
>
> Hello,
>
> I've got following declaration:
> ...
> {$modeswitch typehelpers}
>
> interface
>
> uses
> Classes, SysUtils;
>
> type
> TBuffer = array of Single;
>
> { TBufferHelper }
> TBufferHelper = type helper for TBuffer
> procedure Cl
Am 09.06.2016 14:30 schrieb "José Mejuto" :
>
> El 09/06/2016 a las 8:04, Sven Barth escribió:
>
>>> {$DEFINE THISDONTCOMPILE}
>>> TConstRecord: TFirstRecord = (
>>> {$IFDEF THISDONTCOMPILE}
>>> Ident: TSomePcharArray[1]
>>
Am 09.06.2016 00:05 schrieb "José Mejuto" :
> ---
> program testpossiblebug;
>
> type
> TFirstRecord=record
> Ident: pchar;
> end;
>
> const
> TSomePcharArray: array [0..1] of pchar = ( 'pcharONE','pcharTWO');
>
> {$DEFINE THISDONTCOMPILE}
>
> TConstRecord: TFirstRec
Am 04.06.2016 00:40 schrieb "Bo Berglund" :
>
> On Sat, 4 Jun 2016 00:05:21 +0200, Sven Barth
> wrote:
>
> >FPC's NToBE and BEToN routines indeed only convert if necessary. I don't
> >know about the Delphi's Swap routines, but alone from the name
Am 03.06.2016 22:08 schrieb "Bo Berglund" :
>
> I have a class file implementing interfaces for talking to an embedded
> system and I intend to use this class for both Delphi (on Windows) and
> FPC (on ARM Linux)
> One part of this class deals with transfers of binary data to/from the
> embedded sy
Am 26.05.2016 10:38 schrieb "LacaK" :
>
>
>>> is there way how to declare function, which will accept as parameter any
>>> array type ?
>>> (this parameter I need forward to System.Length() only )
>>
>> Generally one uses TArray as parametertype. in such cases. One can
take
>> the length of a gener
Am 26.05.2016 09:39 schrieb "Marco van de Voort" :
>
> In our previous episode, LacaK said:
> > is there way how to declare function, which will accept as parameter any
> > array type ?
> > (this parameter I need forward to System.Length() only )
>
> Generally one uses TArray as parametertype. in s
Am 26.05.2016 08:33 schrieb "LacaK" :
>
> Hi,
>
> is there way how to declare function, which will accept as parameter any
array type ?
> (this parameter I need forward to System.Length() only )
>
> Just like Length() function.
>
> Now I fall into problem with generics , where I have in one unit ge
Am 25.05.2016 13:54 schrieb "Graeme Geldenhuys" <
mailingli...@geldenhuys.co.uk>:
>
> On 2016-05-25 12:18, Michael Van Canneyt wrote:
> > I am not sure this is safe to do, since an event handler exists of 2
> > pointers: data and method. As far as I know, an interface does not have
a
> > data point
Am 25.05.2016 13:18 schrieb "Michael Van Canneyt" :
>
>
>
> On Wed, 25 May 2016, Graeme Geldenhuys wrote:
>
>> Hi,
>>
>> Can I safely assign a method from an Interface reference to an event
>> handler. The code below works, but I'm not sure if it is safe to do so,
>> and allowed.
>>
>>
Am 23.05.2016 11:37 schrieb "LacaK" :
>
> Dňa 20.5.2016 o 14:42 Sven Barth napísal(a):
>
>>
>> Am 19.05.2016 08:52 schrieb "LacaK" >:
>> >
>> >
>> >>
>> >> >> Additionally, it's possible that it
Am 19.05.2016 08:52 schrieb "LacaK" :
>
>
>>
>> >> Additionally, it's possible that it's not possible to inline generic
routines in regular routines,
>> >
>> > It is not my case.
>> > I use this generic in another generic and then it is specialized in
interface section of same unit.
>> >
>> > Later
Am 19.05.2016 10:57 schrieb "Jonas Maebe" :
>> it should be 2GB on 32bit and 4GB on 64bit Windows with
>> *IMAGE_FILE_LARGE_ADDRESS_AWARE*
>
>
> There is a difference between the total amount of memory you can
allocate, and the maximum size of a single block of memory that you can
allocate. The lat
Am 18.05.2016 14:43 schrieb "LacaK" :
>> Additionally, it's possible that it's not possible to inline generic
routines in regular routines,
>
> It is not my case.
> I use this generic in another generic and then it is specialized in
interface section of same unit.
>
> Later this specialized object
Am 18.05.2016 15:13 schrieb "Marco van de Voort" :
>
> In our previous episode, Sven Barth said:
> > Yes, that might indeed be the most probable cause. That's something
that I
> > still need to fix in trunk, cause I really want inlining to work with
> > gene
Am 18.05.2016 13:29 schrieb "Jonas Maebe" :
>
>
> LacaK wrote on Wed, 18 May 2016:
>
>> Any other ideas, what leads compiler to not inline ?
>
>
> If you compile with -vd, the compiler will tell you in most cases why
it's not inlining. Additionally, it's possible that it's not possible to
inline ge
Am 18.05.2016 11:07 schrieb "Sven Barth" :
>
> Am 18.05.2016 10:06 schrieb "LacaK" :
> >
> > Hi *,
> > is it possible inline also methods of objects (not regular procedures) ?
> > I have very simple class method, which call I need inline.
> &
1201 - 1300 of 2816 matches
Mail list logo