Topic review - how to define a newstruct inside a Singular library
Author
Message
jack
Post subject:
Re: how to define a newstruct inside a Singular library
Quote:
Quote:
how to define a newstruct inside a Singular library?[...]
hannes wrote:
[...] If you want to have it automatically available after loading the library, define it in mod_init() which will automatically after loading. [...]
thanks, that was it!
[quote] [quote] how to define a newstruct inside a Singular library?[...] [/quote][quote="hannes"] [...] If you want to have it automatically available after loading the library, define it in mod_init() which will automatically after loading. [...] [/quote] [/quote] thanks, that was it!
Posted: Thu Jun 12, 2014 3:28 pm
hannes
Post subject:
Re: how to define a newstruct inside a Singular library
Like any other (non-)proc object: define it INSIDE a procedure. If you want to have it automatically available after loading the library, define it in mod_init which will automatically after loading. See for example https://github.com/Singular/Sources/blo ... visors.lib
Like any other (non-)proc object: define it INSIDE a procedure. If you want to have it automatically available after loading the library, define it in mod_init which will automatically after loading. See for example https://github.com/Singular/Sources/blob/spielwiese/Singular/LIB/divisors.lib
Posted: Wed Jun 11, 2014 6:49 pm
jack
Post subject:
how to define a newstruct inside a Singular library
Hello,
when defining anything else than a proc inside a '.lib' file, the user gets an error:
Quote:
cannot assign character 'n' in line ... to any group.
Question: how to define a newstruct used by a Singular library?
Hello,
when defining anything else than a proc inside a '.lib' file, the user gets an error: [quote]cannot assign character 'n' in line ... to any group.[/quote]
Question: how to define a newstruct used by a Singular library?