Singular https://www.singular.uni-kl.de/forum/ |
|
Pointers https://www.singular.uni-kl.de/forum/viewtopic.php?f=10&t=1844 |
Page 1 of 1 |
Author: | Guest [ Thu Jul 22, 2010 9:14 pm ] |
Post subject: | Pointers |
Is it possible to pass values by reference or pointers in Singular? |
Author: | hannes [ Sat Jul 31, 2010 3:20 pm ] |
Post subject: | Re: Pointers |
You may try a new, experimental feature (3-1-1-3 and later): prepend the type of the parameter by "alias" and the variable will be passed by reference (currently read-only: we still have to discussed about that). Example: proc (alias int i) { ..... } |
Author: | Jakob [ Mon Apr 22, 2013 2:35 pm ] |
Post subject: | Re: Pointers |
Hello, It seems that Singular provides an experimental reference type. ( Manual/latest/sing_250.htm#SEC290 ) What are the potential issues? Is it still experimental? As soon as it gets stable, there will be hopefullly no excuse any more for monsters like 'normalizationPrimes(..)' (900 lines of code) or for dublicate code. Jakob |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |