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.

Geek Culture / U5.5 "DWORDs are no longer accepted in the compiler as subscripts..."

Author
Message
Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 31st Aug 2004 04:53
Quote: "DWORDs are no longer accepted in the compiler as subscripts and must be integer values"

does this mean i can't use DWORDs in UDTs?...

if not then what does it mean...i'm thinking about upgrading to 5.5 but i don't want to mess up my current project...

"We make the worst games in the universe."
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 31st Aug 2004 05:09
Lets see the code...


Come to the UK Convention on the 23rd & 24th of October
Ian T
22
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 31st Aug 2004 05:16
I haven't noticed any changes with dwords. It might only matter if you're making plugins.

Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 31st Aug 2004 05:25
@TCA- i haven't upgraded to 5.5 this is not a error message...it says this in the download section of things that changed with 5.5...

"We make the worst games in the universe."
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 31st Aug 2004 05:46
Very odd. I was playing with someone elses code the other day that produces that very error. It had all sorts of dwords, arrays and types in it. Trouble is I can't rememember where I saw it!

Whatever I try and do now it works perfectly.

I'll keep on searching...


Boo!
Ian T
22
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 31st Aug 2004 05:58
P'raps we should mail Lee asking for clarification.

spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 31st Aug 2004 06:02
In 5.4 notes:

Quote: "Added compiler checking to only allow INTEGER or DWORD subscripts for array access"


In 5.5 notes:

Quote: "DWORDs are no longer accepted in the compiler as subscripts and must be integer values"





Boo!
Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 31st Aug 2004 06:06 Edited at: 31st Aug 2004 06:06
i think i know what it's saying...

in this code...

it would give a error because you used "color" as a subscript of player()...and color is a dword...


if this is true then i should keep what i have because i use dwords in my UDT arrays...

"We make the worst games in the universe."
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 31st Aug 2004 06:10
Why do you use dwords over integers?

Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 31st Aug 2004 06:26
Yes, but your code Peter_H works perfectly in 5.5 so dwords ARE allowed as subscripts, in arrays and in types. So what is the release note for 5.5 referring to???


Boo!
Fallout
22
Years of Service
User Offline
Joined: 1st Sep 2002
Location: Basingstoke, England
Posted: 31st Aug 2004 06:34 Edited at: 31st Aug 2004 06:36
I believe it's refering the array index. So this probably wouldn't work. Give it a try, as I dont have the upgrade:



Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 31st Aug 2004 06:53 Edited at: 31st Aug 2004 06:55
Quote: "Yes, but your code Peter_H works perfectly in 5.5"

uuummmm....this code?
i don't have 5.5...so i was just making a guess...

Quote: "Why do you use dwords over integers?"

because i use the "point" command which returns a dword...

"We make the worst games in the universe."
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 31st Aug 2004 08:17
@Fallout - That code also works in 5.5. I have tried all combinations as far as I know of using dwords in arrays and types and I can't get anything to crash. Maybe someone 'in the know' can explain further.


Boo!

Login to post a reply

Server time is: 2024-09-22 12:43:58
Your offset time is: 2024-09-22 12:43:58