This is a discussion / support forum for the Hugo programming language by Kent Tessman. Hugo is a powerful programming language for making text games / interactive fiction with multimedia support.
Clearly, the compiler doesn't support concatenations. Typical practice is the + sign for this purpose; the manual doesn't even contain the word "catenate" or mention any capability to combine two strings. At least I know this now so I can work around it.
"When I die, I want it easy and peaceful in my sleep, like my uncle.
Not screaming and crying like his passengers."
! add this first line to the beginning of the source file
$MAXDICTEXTEND = 7
! sets aside some space so we can add more words to the dictionary table after compilation
array describearray[7] ! a seven element array can hold six letters
routine DMFB
{
local describe, describe2
print "Original values: ";
print " describe = '"; describe;"' describe2 = '"; describe2;"'"
Describe = "One"
Describe2 = "Two"
print " describe = '"; describe;"' describe2 = '"; describe2;"' "
text to describearray
print Describe;
print describe2;
text to 0
Describe = dict(describearray, 7)
print "Final result: ";
print " describe = '"; describe;"' describe2 = '"; describe2;"' "
print "Sample ends."
}
Also, you wouldn't have to use dict if you weren't actually setting the describe variable to the combined string. You could just fake it, of course: