[Implemented] structure types

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

[Implemented] structure types

Post by Trond »

I want to be able to do something like this:

Code: Select all

structure Plane
  wings.l
  seats.l
  cargo.b
  manufacturer.s
endstructure

myplane.Plane

;you must currently do:
myplane\wings = 454

;i want to do either this:
myplane.Plane\wings.l = 454

;or this:
myplane\wings.l = 454

;preferably i would be able do what I want to.

I also want to able to use labels with the same text. (local labels if you want) As I think I head someone say PB is a one-pass compiler, this shouldn't be any technical problem, just let the last label be the used one.