Sign in Join

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

Mailing lists / lazarus / 2002-07

Again some basic questions

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Mattias Gaertner
to Josse Colpaert: About TMainIDE.Create: - MainIDE:=Self Why? - ParseCmdLineOptions is called in…
About TMainIDE.Create: - MainIDE:=Self Why?

The MainIDE is created in lazarus.pp via Application.CreateForm(TMainIDE,MainIDE). This method first creates the form and _then_ assigns it to the variable. But the variable is already needed by some IDE parts during the creation. For example TDebugManager.ConnectMainBarEvents.

- ParseCmdLineOptions is called in TMainIDE.Create and in the main program in lazarus.pp Why?

A relict. I removed the double parsing.

Mattias

Reply by email

Josse Colpaert

About TMainIDE.Create:

- MainIDE:=Self Why?
- ParseCmdLineOptions is called in TMainIDE.Create and in the main program in lazarus.pp Why?

Greetings,

Josse

Reply by email