October 19, 2021, 00:51:19

Author Topic: (Solved) Why does this throw a MAV error? My whole project stopped working!  (Read 591 times)

Offline hosch

  • Full Member
  • ***
  • Posts: 122
Well, you shouldn't name your newly created type after a local variable you have declared in a function and try to access it globally  :-X
« Last Edit: May 27, 2020, 08:43:07 by hosch »

Offline _PJ_

  • Full Member
  • ***
  • Posts: 110
It's really important I feel, to keep functions, vars, Types and their instances all very clearly distinctly named.

Like how this can compile and run … but is terrible.
Code: [Select]
Global A$ = "A"
Type A
Field A%
End Type
Print A
Function A()
Local A.A = New A
A\A = "A"
End Function


SimplePortal 2.3.6 © 2008-2014, SimplePortal