I notice one immediately glaring omission in the Hugo programming language. Include files.
Apparently you can't break up a hugo source into multiple source files and then include them. Even Turbo Pascal version 3 supported this, and I find the omission strange.
I'm trying a sample with Hugo and something is missing
Moderators: Ice Cream Jonsey, joltcountry
- Tdarcos
- Posts: 9556
- Joined: Fri May 16, 2008 9:25 am
- Location: Arlington, Virginia
- Contact:
I'm trying a sample with Hugo and something is missing
"When I die, I want it easy and peaceful in my sleep, like my uncle.
Not screaming and crying like his passengers."
Not screaming and crying like his passengers."
- Ice Cream Jonsey
- Posts: 30191
- Joined: Sat Apr 27, 2002 2:44 pm
- Location: Colorado
- Contact:
Re: I'm trying a sample with Hugo and something is missing
No, you can. I ended up with this for my last game:Tdarcos wrote:I notice one immediately glaring omission in the Hugo programming language. Include files.
Apparently you can't break up a hugo source into multiple source files and then include them. Even Turbo Pascal version 3 supported this, and I find the omission strange.
Code: Select all
#include "verblib.g" ! grammar must come first
#include "hugolib.h" ! standard library routines
#include "contain.h"
#include "system.h"
#include "window.h"
#include "resource.h"
#include "cango.h"
#include "config.hug"
#include "jObjects.hug"
#include "jSceneryLibrary.hug"
#include "jScenery.hug"
#include "jPluralClass.hug"
#include "jVats.hug"
#include "jDaemons.hug"
#include "jIdleDaemons.hug"
#include "jTwinDaemon.hug"
This SHELL.HUG file is what a lot of people use to get started. There's an example of including libraries in it:
http://ifarchive.heanet.ie/if-archive/p ... /shell.hug
We will help you with all our might, Commander!
the dark and gritty...Ice Cream Jonsey!