Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: how to define a newstruct inside a Singular library
PostPosted: Fri Apr 11, 2014 12:22 pm 
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?


Report this post
Top
  
Reply with quote  
 Post subject: Re: how to define a newstruct inside a Singular library
PostPosted: Wed Jun 11, 2014 6:49 pm 

Joined: Wed May 25, 2005 4:16 pm
Posts: 275
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: how to define a newstruct inside a Singular library
PostPosted: Thu Jun 12, 2014 3:28 pm 
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!


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

It is currently Fri May 13, 2022 10:58 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group