The second one should just work. Currently the class is only defined
when "endclass" is found. Doing it earlier is more implementation work,
but it should not require anything on the user side.
For the first example I'm not sure what the best solution is. There is
a plan to add some kind of typedef, but it would still require something
extra to indicate the actual implementation will follow later.
There is trouble when it's not just the class name that needs to be
known, but also what it contains. Then a forward declaration quickly
becomes a lot of duplicate text. And recursive dependencies need to be
handled, which is also relevant in this example.
--
ARTHUR: Will you ask your master if he wants to join my court at Camelot?!
GUARD #1: But then of course African swallows are not migratory.
GUARD #2: Oh, yeah...
GUARD #1: So they couldn't bring a coconut back anyway...
The Quest for the Holy Grail (Monty Python)
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///