FAQ Search Memberlist Usergroups
Jolt Country Forum Index
Register Profile Log in to check your private messages Log in
Log in Log in

I'm trying a sample with Hugo and something is missing

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Jolt Country Forum Index -> Hugo's House of Horrors
View previous topic :: View next topic  
Author Message
Tdarcos



Joined: 16 May 2008
Posts: 4441
Location: University Park, Maryland

PostPosted: Tue Sep 20, 2011 10:35 am    Post subject: I'm trying a sample with Hugo and something is missing Reply with quote

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.
_________________
The lessons of history teach us - if they teach us anything - that no one learns the lessons of history.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Ice Cream Jonsey



Joined: 27 Apr 2002
Posts: 20088
Location: Colorado

PostPosted: Tue Sep 20, 2011 12:29 pm    Post subject: Re: I'm trying a sample with Hugo and something is missing Reply with quote

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.


No, you can. I ended up with this for my last game:

Code:
#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"


Some of those I made myself and some of those I grabbed from other sources.

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/programming/hugo/examples/shell.hug

We will help you with all our might, Commander!
_________________
the dark and gritty...Ice Cream Jonsey!
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Jolt Country Forum Index -> Hugo's House of Horrors All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001 phpBB Group

Theme by Kage Musha - RPG Garden

Copyrights and trademarks are all of the belonging company. No copyright Infringement intended