ECLiPSe structures

From: -- Thomas vO -- (vanouden_at_cf.pageweb)
Date: 01/07/04


Date: Wed, 07 Jan 2004 10:34:07 +0100

hello everybody,
i'm trying to declare a structure in eclipse as in the documentation :

/A structure is declared by specifying a template like this
:- local struct( book(author, title, year, publisher) )./

but within' the compilation, it produces this error :

/ file test.ecl, line 7: syntax error: bracket necessary
| :- local( struct( car(class, power, color, roof) ) ).
| ^ here/

and the same if i remove the first brackets ... does anybody have an
idea of my error ?
thanks,

regards,

-- 
Thomas vO -- Thomas van Oudenhove
http://www.enstimac.fr/~vanouden/


Relevant Pages

  • Re: null assignment in a template
    ... // this template won't compile due to the fact that it is illegal to ... and declare the value in its explicit ... delcares a single ctor to force the client to have to declare an initial value for said variable, as oppossed to Inialisedwhich allows for a compile-time constant initialization value to be specified in the template parameters themselves. ... taking a pointer? ...
    (microsoft.public.vc.stl)
  • Re: Template problem
    ... template ... struct Inner; ... A workaround is to only forward declare the Inner class when you declare ...
    (microsoft.public.vc.language)
  • Re: Problem overriding >> and << in a template class
    ... the rejection also mentioned the cause the of problem: ... For the friend functions to work correctly you need to declare them ... to use a template argument list in the friend declaration. ...
    (comp.lang.cpp)
  • null assignment in a template
    ... My question is about template programming in C++, ... // due to the fact that it is illegal to declare a template with a non-scalar value ... There is no conversion from int to Widget*! ...
    (microsoft.public.vc.stl)
  • Re: null assignment in a template
    ... My question is about template programming in C++, ... // due to the fact that it is illegal to declare a template with a non-scalar value ... int i = 5; ... That isn't going to compile, since the second arg must be an extern pointer value, or NULL. ...
    (microsoft.public.vc.stl)