Singular
https://www.singular.uni-kl.de/forum/

how to define a newstruct inside a Singular library
https://www.singular.uni-kl.de/forum/viewtopic.php?f=10&t=2393
Page 1 of 1

Author:  jack [ Fri Apr 11, 2014 12:22 pm ]
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?

Author:  hannes [ Wed Jun 11, 2014 6:49 pm ]
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

Author:  jack [ Thu Jun 12, 2014 3:28 pm ]
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!

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/