Double declare of structures

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Double declare of structures

Post by GPI »

The editor stop compiling while this:

Code: Select all

  structure test
     a.w
  endstructure
  structure test
     a.w
  endstructure
It would be nice, when the compiler checks the structures. When they are identical, than the compiler should compile normal.

but this:

Code: Select all

  structure test
     a.w
  endstructure
  structure test
     B.w
  endstructure
or this

Code: Select all

  structure test
     a.w
  endstructure
  structure test
     a.l
  endstructure
should give a error.