Seems to work for me, updated the example: https://gist.github.com/2950789
Or am O missing something ?
Change your method to
procedure TMyClass.SayHi;
begin
writeln('Hi World from '+IntToStr(ptruint(self)));
end;
And the test to
write('From MyClass2 : ');
MyClass2.SayHi;
if not
On Tue, 19 Jun 2012 00:22:29 +0300
ik ido...@gmail.com wrote:
Hi,
I'm playing a bit with the notion of execute a method dynamically on demand.
I'ved created the following PoC:
https://gist.github.com/2950789
It works, but for some strange reason, I find myself feeling that I'm
missing
As Bern said you can't call an object method without passing
the reference to the instance. In this case you are lucky
because TMyClass.SayHi doesn't use any properties or class
vars. Add a property to TMyClass and try to writeln that
property and you will see it fails. What you are
The recent thread about using C headers made me think about using C++
projects.
Found that the SWIG tool converts C/C++ .h files into glue code and
bindings for e.g. Python, Modula 3... but not Delphi/Object Pascal.
It seems you get an object-oriented binding.
Did see this post from 2010 about
On Tue, Jun 19, 2012 at 10:38 AM, Ludo Brands ludo.bra...@free.fr wrote:
As Bern said you can't call an object method without passing
the reference to the instance. In this case you are lucky
because TMyClass.SayHi doesn't use any properties or class
vars. Add a property to TMyClass and
Hello,
Is there a way to tell in run-time that a specific function/procedure
should belong to a class ?
For example, let's say I have the following class:
Type
TTest = class
procedure Foo;
end;
And I have also:
procedure Bar;
...
end;
Is there a way to make at some point of my code
On Tue, 19 Jun 2012, ik wrote:
Hello,
Is there a way to tell in run-time that a specific function/procedure
should belong to a class ?
For example, let's say I have the following class:
Type
TTest = class
procedure Foo;
end;
And I have also:
procedure Bar;
...
end;
Is there a way
michael.vancanneyt wrote on Tue, 19 Jun 2012:
As far as I know there is no language structure for this, unless the
objective C classes support offers this.
You can indeed do that in Objective-C/Pascal, but
a) that's not via a language construct, but by directly interacting
with the
Hi all.
I am working on implementing a lite export routine from our program to
the DDI XML format:
http://www.ddialliance.org/Specification/DDI-Lifecycle/3.1/XMLSchema/
A convinient way of working with the DDI format is to prefix elements
using common set of prefix'es, but having spent most
ik ido...@gmail.com hat am 19. Juni 2012 um 14:22 geschrieben:
Hello,
Is there a way to tell in run-time that a specific function/procedure should
belong to a class ?
For example, let's say I have the following class:
Type
TTest = class
procedure Foo;
end;
And I
On Tue, Jun 19, 2012 at 4:13 PM, Mattias Gaertner nc-gaert...@netcologne.de
wrote:
**
ik ido...@gmail.com hat am 19. Juni 2012 um 14:22 geschrieben:
Hello,
Is there a way to tell in run-time that a specific function/procedure
should belong to a class ?
For example, let's say I have
Depending on what you’re actually trying to do, you may consider
implementing your own invokable variant type. I found a tutorial at
http://alex.ciobanu.org/?p=152. Basically, instances will be wrapped
in a TVarData-compatible record, and your custom
TInvokeableVariantType-derived class will
Hi,
I would like to write video (created from series of bitmaps) to some
popular video formats like avi, flv. Is this possible? Has FPC
bindings for video librarys?
I googled that WinFF (http://winff.org/html_new/) is written in FPC
and Lazarus, so I supose that some bindings exists but can't
Class helpers would not help ?
http://wiki.freepascal.org/Helper_types
-Laco.
Hello,
Is there a way to tell in run-time that a specific
function/procedure should belong to a class ?
For example, let's say I have the following class:
Type
14 matches
Mail list logo