|
|
#136 |
|
User
Join Date: Aug 2009
Posts: 8
|
Allow me to add another request for RealTable. I was looking into Table in order to keep from having to make another useless dedicated hashtable for unlimited storage, but found that Table didn't save reals, and of course saving struct/array index integers gives no storage benefit.
|
|
|
|
| Sponsored Links - Login to hide this ad! |
|
|
|
|
#137 | |
|
master of fugue
Join Date: Jun 2007
Posts: 2,558
![]() ![]() ![]() ![]()
|
Quote:
JASS:
//! endtextmacro
//! runtextmacro Table__make("Table","integer","key" )
//! runtextmacro Table__make("StringTable","string", "StringHash(key)" )
//! runtextmacro Table__make("HandleTable","handle","GetHandleId(key)" )
// Add the line below this comment to your table script
//! runtextmacro Table__make("RealTable","real", "StringHash(R2S(key))" )
endlibrary
|
|
|
|
|
|
|
#138 |
|
Procrastination Incarnate
Development Director
|
I think he's trying to store reals, not use reals as keys.
__________________I don't really think this feature is needed, care to give an example of what you need this for? |
|
|
|
|
|
#139 | |
|
User
Join Date: May 2011
Posts: 85
![]()
|
Quote:
Personally, I don't have anything against a library such as Bribe's version of Table, but I don't see much reason for storing anything else other than integers too. I guess it's up to the majority. On the other hand, if Table was able to be used with everything that the native hash tables support, then resource submitted here would scarcely need their own hash tables. I mentioned UnitAppearanceTracker as an example only because of the ugly PRECISION stuff (which can completely be ignored by having AutoIndex...). |
|
|
|
|
|
|
#140 |
|
User
Join Date: Apr 2013
Posts: 10
|
This has been deprecated by Bribe am i right?
|
|
|
|
|
|
#141 | |
|
Procrastination Incarnate
Development Director
|
Quote:
|
|
|
|
|
|
|
#142 |
|
User
Join Date: Apr 2013
Posts: 10
|
How come?
|
|
|
|
|
|
#143 |
|
User
Join Date: Dec 2006
Posts: 236
![]()
|
This still works. It isn't deprecated because Bribe's doesn't improve on the current features. Rather, it adds extra ones.
__________________ |
|
|
|
|
|
#144 | |
|
Procrastination Incarnate
Development Director
|
Quote:
Edit: Ah, PurgeandFire111 already beat me to it. Last edited by Anitarf : 04-05-2013 at 08:41 AM. |
|
|
|
|
|
|
#145 |
|
User
Join Date: Apr 2013
Posts: 10
|
Oh
I thought it was deprecated because of the Bribe's Table's Looks |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
|
Donate |