Hi All.What is the E equivalent of C struct definition?I have a definition in my C code:Quote:
_________________I miss draggable screens in MorphOS... and do you? I know I'm in a minority unfortunately.
@r-teaI have a vague memory that you could use it like this is E :appicon:PTR TO diskobjectI might be way off now though, it was at least 15 years I touched E lately =)
Last edited by ChrisH on 08-Mar-2017 at 10:35 PM.
_________________Author of the PortablE programming language.I can usually be found on www.Amigans.net (my favourite Amiga forum).It is pitch black. You are likely to be eaten by a grue...
@r-teaTo answer your question in E it is called an OBJECT. Not shouting on purpose but E likes capitals. Unlike C an object can also have the properties of a C++ class.Also, E does have #defines, but in proper use in E it uses CONSTs,
Thanks guys. In which MODULE can I find the diskobject defined?
@r-teaShould be here like the C header:MODULE 'workbench/workbench'