Fields in a type

BlitzMax Forums/BlitzMax Beginners Area/Fields in a type

Gavin Beard(Posted 2007) [#1]
Hi all, this has prob. been answered before but cant find n e thing definitive via search, can u have private fields in a type? i've tried puttng private in front of field but get an error : Syntax error in user defined type declararion

many thx


CS_TBL(Posted 2007) [#2]
no


tonyg(Posted 2007) [#3]
Found these by searching with 'Private Field' :
Private Fields, or Variables In a Type
plee for Properties, Private Fields


ImaginaryHuman(Posted 2007) [#4]
What if each of your private fields is just an Object, and then you don't have anything within or outside of the type stating what kind of object it is, so that nothing knows how to convert it to a real object, then within your method/function within the type convert it to the type of object you know it to be?


CS_TBL(Posted 2007) [#5]
oO

What if we just get 'private' & 'public' in the next update? :P


Gavin Beard(Posted 2007) [#6]
thanks for your help guys, appreciated :-)