Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / TYPE inside TYPE?

Author
Message
mhack
23
Years of Service
User Offline
Joined: 24th Apr 2003
Location:
Posted: 16th Oct 2003 18:10
It looks like there is no way of using type inside type?
Like doing a type with array of other types as one of it's elements?

Thanks,
Arseny
adr
23
Years of Service
User Offline
Joined: 21st May 2003
Location: Job Centre
Posted: 16th Oct 2003 18:22 Edited at: 16th Oct 2003 18:23
I use types in types all the time ...


What would be nice would be arrays in types... upgrade 6, anyone?


Can I ask you a Question?
What is it?
It's an interrogative form of sentence, used to test knowledge. But that's not important right now.
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 16th Oct 2003 18:32


i won't bother posting the rest as i don't want it public yet, but essentially thats how you achieve types -> types

then you'd access it by

if sv_player(1).mov.u = TRUE then sv_mov_player(ANGFORWARD,sv_plyr_speed)



Proteus 1935
22
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Brazil
Posted: 16th Oct 2003 20:28
Yeah adr,I support your idea, arrays inside types would be VERY nice

Currently coding: 3d-2d latitude/longitude
Recent coding: elliptical orbits
Proteus
mhack
23
Years of Service
User Offline
Joined: 24th Apr 2003
Location:
Posted: 16th Oct 2003 23:19
I meant ARRAYS OF TYPE INSIDE TYPE
Vandetta
23
Years of Service
User Offline
Joined: 17th Dec 2002
Location:
Posted: 19th Oct 2003 03:29
YA! Arrays inside of types!!! Lets hear it!!

Login to post a reply

Server time is: 2026-07-26 09:31:11
Your offset time is: 2026-07-26 09:31:11