I
understand) to give access to private/protected static elements.
--
Best regards,
Paul Ishenin.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
11.01.2014 18:27, denisgolovan wrote:
Now the question to the compiler developers - will you accept my patch
if I make .res to be searched in unit output directory (-FU)?
Add a separate -F{Some character} switch for resource search.
Best regards,
Paul Ishenin
l.org/FPC_New_Features_Trunk
Best regards,
Paul Ishenin
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
/tdotunits3.pp
http://svn.freepascal.org/svn/fpc/trunk/tests/test/tdotunits4.pp
Or use google/yahoo/bing/yandex.
Best regards,
Paul Ishenin
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
st regards,
Paul Ishenin
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
g/view.php?id=25029
Fixed in r25493. The fix also helped to find a bug in fpmake.pp which is
used to compile a52 package.
Thank you.
Best regards,
Paul Ishenin
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.o
code to
load forms data from resources.
Best regards,
Paul Ishenin
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
ource <> 0 then
begin
Stream := TResourceStream.Create(HInstance, 'SQLSCRIPT', RT_RCDATA);
...
end;
TResourceStream is available cross platform in classes.pas unit.
Best regards,
Paul Ishenin
___
fpc-pascal maillist - fpc-p
se you see something else please reply to this mail or to
the bug tracker.
Best regards,
Paul Ishenin
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
token which can't be used in expressions.
Which means replace '=>' in my example with some token (like ':' char or
'alias' word or anything else).
And since 'as' can be used in expressions (with List as TStringList do)
we should not use it.
> alias2, expression3, expression4 =>
alias4 do
begin
end;
Where '=>' is some token which can't be used in expressions.
Best regards,
Paul Ishenin
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
We can use some new keyword or reuse some keyword which is not used
in expressions.
If I need to choose from 3, 4 and 5 I would use ':=' syntax because it
more like to assignment:
with a := TStringList.Create do
begin
Text := 'bla';
DoSomething(a);
Free;
end;
Best regard
17.03.13, 18:25, Sven Barth пишет:
With a=VeryLongNameForARecord, b=AnotherRecordWithAVeryLongName do ...
Now THAT is really unpascalish... either ":=" or the already suggested
"as"...
Why? Constants and Types are also use '=' instead of ':=' for
there...
Maybe then it will be easier to implement compiler support using
bitpacked arrays instead of creating so complex workarounds?
Best regards,
Paul Ishenin
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/lis
?
Best regards,
Paul Ishenin
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
regards,
Paul Ishenin
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
30.01.13, 20:25, leledumbo пишет:
I wonder whether this "Great news" means they're developing something new or
what...
Or maybe become a part of Delphi?
Best regards,
Paul Ishenin
___
fpc-pascal maillist - fpc-pascal@lists.free
don't remember whether we have it in FPC at the moment.
Best regards,
Paul Ishenin
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
09.01.13, 20:57, Michael Fuchs wrote:
Am 08.01.2013 23:43, schrieb Paul Ishenin:
What is the best way for a discussion on this? Should I create a feature
request in bugtracker?
First create a desired implementation with a patch.
I would do it, if I only know where to start. Unfortunately
09.01.13, 6:26, Michael Fuchs пишет:
What is the best way for a discussion on this? Should I create a feature
request in bugtracker?
First create a desired implementation with a patch.
Best regards,
Paul Ishenin
___
fpc-pascal maillist - fpc
will follow.
Best regards,
Paul Ishenin
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
07.01.13, 11:47, Jorge Aldo G. de F. Junior пишет:
Are you SURE you need "class constructor" ?
He needs it to initialize a class variable (static field).
Best regards,
Paul Ishenin
___
fpc-pascal maillist - fpc-pascal@lists.freepasca
to use a class destructor, or is this a bug?
You don't understand.
Class destructor is called automatically like finalization section of a
unit. You can't call it directly.
Best regards,
Paul Ishenin
___
fpc-pascal maillist - fpc-pascal@
22.12.12, 22:58, Martin Schreiber пишет:
That was so in the beginning but Delphi later changed it. So a Delphi
UnicodeString variable currently allways is utf-16 encoded.
The same in FPC.
Best regards,
Paul Ishenin
___
fpc-pascal maillist - fpc
t class.
Best regards,
Paul Ishenin
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Best regards,
Paul Ishenin
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
why should it be stored in vmt or near it?
Best regards,
Paul Ishenin
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
implementation for
that.
Best regards,
Paul Ishenin
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
moment.
Best regards,
Paul Ishenin
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
FPC trunk versions - there you can
influence on what will be released.
Btw, did you report about all found bugs in advanced records? I've fixed
3 related bugs and the fixes are in trunk.
Best regards,
Paul Ishenin
___
fpc-pascal maillist
trict private" section type.
Best regards,
Paul Ishenin.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
:
1. delphi does not support such declarations
2. we don't have a test for this kind of syntax
So maybe we had a feature by accident? Should I restore that behavior?
Best regards,
Paul Ishenin.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal
each new.
Best regards,
Paul Ishenin.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
17.05.2011 22:10, Felipe Monteiro de Carvalho wrote:
Does anyone know if we have our own internal linker to wince? It seams
that yes, but I that's very strange for me. I thought that we have it
only for x86-win32.
We have it for all windows targets.
Best regards,
Paul Is
...;
Then you can declare variables with any of that types. E.g.
var
L: TList;
LI: TList;
LIO: TList
As I know Sven will work to support this and other missing generics
features.
Best regards,
Paul Ishenin
___
fpc-pascal maillist -
which I stoped my work.
Best regards,
Paul Ishenin.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
13.04.2011 21:51, Sven Barth wrote:
Would you mind if I'd try to continue/finish that work?
Please do.
Best regards,
Paul Ishenin
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
play with
TMenuItem.Handle and windows api in {$ifdef windows} block inside your
application.
Best regards,
Paul Ishenin
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
ng at my free
time I don't think it will be finished by me, so I will add a note there today.
Best regards,
Paul Ishenin
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
12.02.2011 16:36, Dejan Boras wrote:
I've got a library which runs on Android, and is loaded by a Java program. The
INITIALIZATION sections of units do not seem to be called, is there a way to do
this manually, or am I missing something?
It must be done automatically but you can force it yours
:= PtrInt(a) < PtrInt(b);
end;
type
TMyMap = specialize TFPGMap ;
begin
end.
Please report this bug to the tracker.
Best regards,
Paul Ishenin
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
TB = class(TInterfacedObject, IB)" ?
TB is declared as it only implements IB.
Or is my only choice to just declare "TB = class(TInterfacedObject, IA,
IB)" ?
Yes.
Best regards,
Paul Ishenin
___
fpc-pascal maillist - fpc-pascal@
this a bug,
and I should submit it?
This is expected behavior. It works the same way as in delphi.
Best regards,
Paul Ishenin
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
02.01.2011 22:57, Benedikt Schindler wrote:
hello,
when i try to compile lazarus i get following error:
[compiler crash]
has anyone an idea what this could be?
If the compiler version is from older than today please try to update
and rebuild the compiler.
Best regards,
Paul Ishenin
31.12.2010 20:01, Darius Blaszyk wrote:
On Dec 31, 2010, at 10:43 AM, Paul Ishenin wrote:
31.12.2010 7:53, Darius Blaszyk wrote:
I installed 2.5.1 just to test if it was possible to use static class methods
or not. Apparently not so it seems. It was a good try, but it failed. Thanks
anyway
31.12.2010 7:53, Darius Blaszyk wrote:
I installed 2.5.1 just to test if it was possible to use static class methods
or not. Apparently not so it seems. It was a good try, but it failed. Thanks
anyway for the help and explanation Jonas.
Try {$mode delphi}.
Best regards,
Paul Ishenin
this has low priority for me.
Best regards,
Paul Ishenin
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
h to be able to compile rtti unit.
Best regards,
Paul Ishenin
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
this new mechanism (See Jonas'
answer to my previous post, badly sent :-( ).
But it might be possible to add this mechanism, by making patches to FPC.
Yes.
Would it interest somebody to have this new functionality?
Yes.
Best regards,
Paul Ishenin
_
.
Best regards,
Paul Ishenin.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
citly start a field section by "var"
keyword.
For example:
TAClass = class
private
type
TMyInt = type integer;
var // this keyword is required here
Field1: TMyInt;
end;
Best regards,
Paul Ishenin.
___
fpc-pascal maillist - fpc-pa
06.11.2010 21:39, ik wrote:
But why class variables and not class fields ?
What is the difference?
"var" is already a reserved word. reserving a word "field" will cause
more problems than using an already reserved word.
Best r
)
as the lower bound and High(a) as the high bound.
Best regards,
Paul Ishenin.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
17.10.2010 21:31, Juha Manninen (gmail) wrote:
program project1;
{$mode objfpc}{$H+}
uses
Classes;
var
io: TInterfacedObject;
begin
io := TInterfacedObject.Create;
end.
Try the same but replace io type to IUnknown.
Best regards,
Paul Ishenin
into your
project {$R myres.res} you will have a dll with the version information.
Best regards,
Paul Ishenin.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
sion
information in it and Lazarus create a res file for you.
Best regards,
Paul Ishenin.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
used by Lazarus only after the release. Before that we need
to wait.
Best regards,
Paul Ishenin.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
04.04.2010 22:53, Zaher Dirkey wrote:
But he must use variable of interface to use TInterfacedObject not
variable of TObject to take this advantage (if i am not wrong).
You are not wrong.
Best regards,
Paul Ishenin.
___
fpc-pascal maillist - fpc
d a GetEnumerator to those classes, but I'm unsure as to
how to define the enumerator type. which needs to be a class that can
hold a reference to the specialised generic container.
If you look at fgl which is in trunk you will find one GetEnumerator
implementation there.
B
ould do thin in Delphi.
Best regards,
Paul Ishenin.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
t i might need to make a property to read the TList of
FFormList and check on each form to out if its the active form. ( not
sure about this part ).
You are searching the wrong object. Look at TScreen.ActiveForm /
TScreen.ActiveCustomForm (as I remember).
Best regards,
Pau
constructor is raises an exception it calls a destructor. This is
so because allocated memory needs to be freed.
Best regards,
Paul Ishenin.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Marc Weustink wrote:
Can we have a virtual version too like described here
http://hallvards.blogspot.com/2007/05/hack17-virtual-class-variables-part-i.html
Well, I suppose we can if someone will implement ;)
Best regards,
Paul Ishenin.
___
fpc
can't do this because t_child.c duplicates
t_parent.c. In Delphi mode you can do this. I have no personal opinion
how ObjFpc mode should work here but this behavior is consistent with
restrictions for identifier duplication we currently have in objfpc mode.
e. Is it available in {$mode ob
dmitry boyarintsev wrote:
Are these features available for {$mode delphi} only?
No. For objfpc too.
Best regards,
Paul Ishenin.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
o a class.
5. 'class property' - similar to regular property but works with static
fields and methods
Some examples:
http://wiki.lazarus.freepascal.org/class_extensions_examples
Please test and report bugs found.
Best regards,
Paul Ishenin.
__
opment. This is very productive. I run
one lazarus with my test project and one lazarus with the compiler.
Best regards,
Paul Ishenin.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
implemented in delphi.
Best regards,
Paul Ishenin.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Jonas Maebe wrote:
and other language
changes such as closures etc.
Unavailable (I don't think anyone is even working on that).
What is this? Any document to read about 'closures'?
Best regards,
Paul Ishenin.
___
fpc-
merge everything there :)
Best regards,
Paul Ishenin.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Florian Klaempfl wrote:
Fine with me but is there a tool to merge the community site into the
forum software used by lazarus?
How the community site is built? Does it uses own made engine or some
well known?
Best regards,
Paul Ishenin.
___
fpc
error message to help you
Maybe I will ask later from Lazarus list
indeed good decision.
Best regards,
Paul Ishenin.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
ect Lazarus.
Best regards,
Paul Ishenin.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
iteration variable
If we ommit the 'in' keywork then it is not a 'for-in' loop, so I am not
responsible :)
Best regards,
Paul Ishenin.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
rd method,
Should be good point to implement this (pascal always has very simple
semantic and very strong type checking)
Of course you then you can use any enumerator with any collection, but
it will be better?
How many errors we then invoke?
Much less.
Best r
current implementation. It would not be required. If
not used then it will work as now but if used then compiler will search
for the given identifier and use it instead of operator/GetEnumerator
method.
Best regards,
Paul Ishenin.
___
fpc-pascal maillist
using
GetEnumerator"
Best regards,
Paul Ishenin.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
this, I am quite sure, is not the cause of the
compile time error).
Are these known issues?
Have you tried with the trunk compiler? Last time I tried all 5 worked
fine. The only thing is that the library directive showed no warning but
this is
name '_FSMountServerVolumeSync';
It compiles and links but it crashes (access violation).
What am I doing wrong? Is this only for Cocoa? How can I make it
available?
I think you foget to use correct calling conventon modifier. As I know
you should use 'mwpascal' modifier.
e(ErrorMsg) at get_caller_addr(get_frame)
Best regards,
Paul Ishenin.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
0)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x7fe74e2de000)
There is some serious work to be done to make that reality :-)
All that seriuos work is to turn off HasX define. gtk2 can be used on
windows without any X.
Best regards,
Paul Ishenin.
___
n for example lazarus bug tracker and
select gtk2 bug reports. You will have enough job for this time.
Try to think whether lazarus need 10 widgetsets 30% ready or 3
widgetsets 100% ready? I would choose last.
Best regards,
Paul Ishenin.
___
fpc-pascal mai
to apply patch from here: http://bugs.freepascal.org/view.php?id=13323
Best regards,
Paul Ishenin.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
t all other developers who need to update from your
repository. Now they need to learn git and to install it on their systems.
Best regards,
Paul Ishenin.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/ma
Guru Kathiresan wrote:
Hello,
Today I have released a new product for Delphi and Freepascal –
wxForms for Delphi.
This is a Pascal wrapper for wxWidgets and a Form designer for Delphi.
And what about design forms in Lazarus?
Best regards,
Paul Ishenin
memory to which Cursor is pointing. Don't
forget that it is pointing to the memory allocated by New anymore after
that assignment.
I suppose you need to remove both New and Dispose.
Best regards,
Paul Ishenin.
___
fpc-pascal maillist - fpc-p
:= False;
end;
Anybody got a better Object Pascal version of IsCharAlpha() I can use
and that we can add into Free Pascal?
Here in
http://svn.freepascal.org/svn/lazarus/trunk/components/jcf2/Utils/JcfStringUtils.pas
I used the same code :)
Best regards,
Paul Ishenin.
__
Paul Ishenin wrote:
... Other widgetset are not implemented there and graphic too.
Read as "other widgets" (or other controls).
Best regards,
Paul Ishenin.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.free
and graphic too.
Best regards,
Paul Ishenin.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
u
look at LResources.pas you will see:
{$IFDEF FPC_HAS_WINLIKERESOURCES}
{$DEFINE UseRES}
{$ENDIF}
There you can also look how UseRES is used.
Best regards,
Paul Ishenin.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepa
string then you are responsibile for all problems you get.
Best regards,
Paul Ishenin.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
91 matches
Mail list logo