Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2011-09

Local types and protected visibility

7 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Alexander Klenin

As reported in the Russian forum:
http://freepascal.ru/forum/viewtopic.php?f=1&t=7362 the following code:
{$mode objfpc}
uses

  Classes;
type
  TMyClass=class
  private
  type
    TMyMemoryStream=class(TCustomMemoryStream) end;
  public
    procedure MyProc;
  end;
procedure TMyClass.MyProc;
begin
  with TMyMemoryStream.Create
    do SetPointer(nil,0)
end;
begin
end.

Causes 'Error: Identifier not found "SetPointer"'.

Moving TMyMemoryStream declaration out of the TMyClass works.

Alexander S. Klenin

Reply by email

Paul Ishenin
to Jonas Maebe: As reported on mantis: http://bugs.freepascal.org/view.php?id=18767 Jonas
Jonas Maebe wrote 6 lines
On 06 Sep 2011, at 10:13, Alexander Klenin wrote: > As reported in the Russian forum: As reported on mantis: http://bugs.freepascal.org/view.php?id=18767

They are different bugs.

The bug reported by Alexander here is related to with symbol table. I've already fixed it locally and will publish after the testsuite run.

Best regards,
Paul Ishenin.

Reply by email

Alexander Klenin
to Paul Ishenin
Paul Ishenin wrote 5 lines
06.09.2011 16:28, Jonas Maebe wrote: They are different bugs. The bug reported by Alexander here is related to with symbol table. I've already fixed it locally and will publish after the testsuite run.

Can something be done to speed up the bugtracker?
I have just given up waiting for the bug page to load, and just parroted the URL back to the freepascal.ru. That's somewhat embarassing ;-)

Alexander S. Klenin

Reply by email

Jonas Maebe
to Alexander Klenin
Alexander Klenin wrote
Can something be done to speed up the bugtracker? I have just given up waiting for the bug page to load, and just parroted the URL back to the freepascal.ru.

Right after I sent my mail the server was rebooted for some reason, and the web server didn't respond for a while. I'm pretty sure it works fine if you try now (it does for me anyway).

Jonas

Reply by email