bmx-ng / bcc

A next-generation bcc parser for BlitzMax
zlib License
33 stars 12 forks source link

[FR] Generics argument overloading #621

Open thareh opened 1 year ago

thareh commented 1 year ago

Hey,

I'm not sure this is at all possible, but it would be nice to be able to overload generic types with a different number of arguments:

Framework BRL.Blitz
Import BRL.Collections

Type TTreeMap<KA,KB,V>
EndType

Local map2d:TTreeMap<String, String> = New TTreeMap<String, String>()
map2d["foo"] = "bar"

Local map3d:TTreeMap<String, String, String> = New TTreeMap<String, String, String>()
map3d["foo", "fee"] = "bar"

(Pseudo-code)

Have a good day!