Michael Van Canneyt wrote:
On Sat, 23 Jun 2007, Joao Morais wrote:
Michael Van Canneyt wrote:
On Sat, 23 Jun 2007, Joao Morais wrote:
Result := vmetadatamethod;
end;
the last assignment doesn't compile, the compiler complains that:
Error: Incompatible types: got "" expected "AnsiString"
On Sat, 23 Jun 2007, Joao Morais wrote:
> Michael Van Canneyt wrote:
> >
> > On Sat, 23 Jun 2007, Joao Morais wrote:
> >
> > > Hello,
> > >
> > > Taking the following code:
> > >
> > > {$mode objfpc}{$h+}
> > > class function tfoo.classmetadata: string;
> > > var
> > > vmetadatamethod: funct
Michael Van Canneyt wrote:
On Sat, 23 Jun 2007, Joao Morais wrote:
Hello,
Taking the following code:
{$mode objfpc}{$h+}
class function tfoo.classmetadata: string;
var
vmetadatamethod: function: string of object;
begin
vmetadatamethod := @internalmetadatastr;
// more code
Result := v
On Sat, 23 Jun 2007, Joao Morais wrote:
>
> Hello,
>
> Taking the following code:
>
> {$mode objfpc}{$h+}
> class function tfoo.classmetadata: string;
> var
> vmetadatamethod: function: string of object;
> begin
> vmetadatamethod := @internalmetadatastr;
> // more code
> Result := vme
Hello,
Taking the following code:
{$mode objfpc}{$h+}
class function tfoo.classmetadata: string;
var
vmetadatamethod: function: string of object;
begin
vmetadatamethod := @internalmetadatastr;
// more code
Result := vmetadatamethod;
end;
the last assignment doesn't compile, the compile