Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, Akow, degenerate_762), 1,430 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 4
Page 6 of 6 1 2 3 4 5 6
Re: GSVector [Re: pegamode] #261997
04/21/09 13:51
04/21/09 13:51
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline

Serious User
VeT  Offline

Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
Yes, you're right smile
I thought that i can create one object and then change its settings, throw them into vector. This because i didnt know, how your vector works... So, now you can update manual for it.

Btw, what about insertIntoGSVectorUnique function? Are you going to release second version of your vector?


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: GSVector [Re: VeT] #261998
04/21/09 14:01
04/21/09 14:01
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
I'm not sure what I shall update in the manual?

Always remember it's just a pointer that is stored in the vector !!!

I can still release a new version of the vector, but I'm really not sure if it would make a big difference. In the current version you have to use an int* for the position parameter and in the new version you would have to use a var. Not that much difference.

Regards,
Pegamode.

Re: GSVector [Re: pegamode] #262000
04/21/09 14:23
04/21/09 14:23
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline

Serious User
VeT  Offline

Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
Updating manual: i'm speaking about this
Code:
int i = 0;
	
	diag("\ngetFromGSVector:");
	diag(str_for_num(NULL,getFromGSVector(test,(int*)i)));


But generaly, i'm talking about insertIntoGSVectorUnique function, wich would check, if elements isnt stored in vector

F.e. you have vector 1,5,2,4,3 and you want to add 2, so
insertIntoGSVector would create 1,5,2,4,3,2
and
insertIntoGSVectorUnique would leave 1,5,2,4,3 as 2 is already stored in vector
I think, that searching through vector in dll(with the help of insertIntoGSVectorUnique function, that stored in the dll) would be faster than in lite-c


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: GSVector [Re: VeT] #262026
04/21/09 16:10
04/21/09 16:10
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
You think in a too simple way with "insertIntoGSVectorUnique".

It's just a pointer that is stored in the vector and not a number.
The vector does not know what kind of object is behind the pointer so it's not possible to compare those.

I think in such a case a hashmap is the better choice than a vector.

Regards,
Pegamode.

Re: GSVector [Re: pegamode] #262053
04/21/09 18:28
04/21/09 18:28
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline

Serious User
VeT  Offline

Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
ah, okay.. so, looking like you needn't second version ^_^


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Page 6 of 6 1 2 3 4 5 6

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1