1. RE: user defined types

It also worked OK for me, Derek.
----- Original Message -----
From: <jc at cowgar.com>
Subject: Re: user defined types


>
> Very strange. I typed your code in exactly. All works fine here for me. I
> am running 2.3 on Windows.
>
> Jeremy
>
> --On Saturday, December 21, 2002 7:07 PM +1100 Derek Parnell
> <ddparnell at bigpond.com> wrote:
>
> >
> > Can anyone tell me what I'm doing wrong with this..
> >
> > In a file I have these 4 lines
> >  -------types.e---------
> >  global type int( integer i )
> >      return integer(i)
> >  end type
> >
> > -------------------------
> > and in the testing file I have these three lines
> >  -----test1.ex--------
> >  include types.e
> >  int Orange Orange = 5
> >
> > -------------------------
> > however I get this message...
> >
> > test1.ex:2
> > int has not been declared
> > int Orange Orange = 5
> >
> >   ^
> >
> > -----------
> > Next I change the test1.ex file to read thus...
> >
> >  -----test1.ex--------
> >  global type int( integer i )
> >      return integer(i)
> >  end type
> >  int Orange Orange = 5
> >
> > ------------------
> > and it works fine.
> >
> > So it seems that the global scope of the type() function is not being
> > carried thruogh correctly.
> >
> > ----------------
> > cheers,
> > Derek Parnell
> >
> >
>
>
>

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu