Does anyone have an answer to this question, see the comments in the code sample, thanks.
Code:
var class<Weapon> DefaultWeapon;
function dummy()
{
local name aWeaponName;
// Assume I have a valid class around called myCustomWeapon
aWeaponName = 'myCustomWeapon';
// This sort of assignment works
DefaultWeapon = class'myCustomWeapon';
// But how can I assign DefaultWeapon based on aWeaponName?
// Here is stuff I tried but doesn't work...
DefaultWeapon = class(aWeaponName);
DefaultWeapon = class<aWeaponName>;
DefaultWeapon = aWeaponName.class;
}