[Inform] Daemons! Argh!

Forum Games General : Games General Discussions - [Inform] Daemons! Argh!

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: rec.games.int-fiction (More info?)

 

Hello all,

I am new to Inform, and am having some difficulty with daemons.
You see, I have a daemon in my code, whose syntax and code have been
triple checked, and yet when I insert it into my masterpiece, I get 78
compile errors!
Would anyone be willing to lend me a hand? An excerpt from the code of
the effected object follows. Of course, "StartDaemon(obj);", has been
defined elsewhere.

var 0,
daemon [; switch (++obj.var){
1: print "";
7: print "";
9: print "";
11: StopDaemon(obj); deadflag = 1; print "";
],

Thanks in advance for any help,
Gulphx

Sponsored Links
Register or log in to remove.

Archived from groups: rec.games.int-fiction (More info?)

 

"Gulphx" <gulphx@yahoo.com> wrote in message
news:25660f95.0404172001.61811f72@posting.google.com...
> Hello all,
>
> I am new to Inform, and am having some difficulty with daemons.
> You see, I have a daemon in my code, whose syntax and code have been
> triple checked, and yet when I insert it into my masterpiece, I get 78
> compile errors!
> Would anyone be willing to lend me a hand? An excerpt from the code of
> the effected object follows. Of course, "StartDaemon(obj);", has been
> defined elsewhere.
>
> var 0,
> daemon [; switch (++obj.var){
> 1: print "";
> 7: print "";
> 9: print "";
> 11: StopDaemon(obj); deadflag = 1; print "";
> ],
>
> Thanks in advance for any help,
> Gulphx

The obvious error in your code is the missing braces...

object d with var 0,
daemon [;
switch (++self.var){
1: print "";
7: print "";
9: print "";
11: StopDaemon(self); deadflag = 1; print "";
}
];

I seems to compile fine when fixed.

Reply to Anonymous

Archived from groups: rec.games.int-fiction (More info?)

 

Also, this sort of question is best asked on rec.arts.int-fiction.
Cheers,

-Jim
"onyxring" <Jim(At)OnyxRing(Dot)com@nospam.com> wrote in message
news:wbpgc.931$pg.373@okepread05...
> "Gulphx" <gulphx@yahoo.com> wrote in message
> news:25660f95.0404172001.61811f72@posting.google.com...
> > Hello all,
> >
> > I am new to Inform, and am having some difficulty with daemons.
> > You see, I have a daemon in my code, whose syntax and code have been
> > triple checked, and yet when I insert it into my masterpiece, I get 78
> > compile errors!
> > Would anyone be willing to lend me a hand? An excerpt from the code of
> > the effected object follows. Of course, "StartDaemon(obj);", has been
> > defined elsewhere.
> >
> > var 0,
> > daemon [; switch (++obj.var){
> > 1: print "";
> > 7: print "";
> > 9: print "";
> > 11: StopDaemon(obj); deadflag = 1; print "";
> > ],
> >
> > Thanks in advance for any help,
> > Gulphx
>
> The obvious error in your code is the missing braces...
>
> object d with var 0,
> daemon [;
> switch (++self.var){
> 1: print "";
> 7: print "";
> 9: print "";
> 11: StopDaemon(self); deadflag = 1; print "";
> }
> ];
>
> I seems to compile fine when fixed.
>
>

Reply to Anonymous

Archived from groups: rec.games.int-fiction (More info?)

 

> Also, this sort of question is best asked on rec.arts.int-fiction.

Yes, you are absolutely correct about that!

As I just posted on rec.arts.int-fiction:
My sincere apologizes for any annoyance I may have caused anyone. I do
know the rules, but somehow managed to get the newsgroups mixed up.
I'm terribly sorry about that. Trust me, it won't happen again!

In closing, *please* don't judge my intelligence by my first two
postings!

Gulphx
(And by looking at the spelling errors in my message, I should go pick
up Nort and Bert!)

Reply to Anonymous
Tom's Hardware > Forum > Games General > Games General Discussions > [Inform] Daemons! Argh!
Go to:

There are 552 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them