type
T = Rootobj
T2 = object of T
i: int
var t: T2
proc a(o: T) =
echo "proc a"
#template a(o: expr) =
# echo "template a"
a(t)
Output is
proc a
When I uncomment the template, I get
I did found out that the problem lies in my deskop theme. If somebody knows a
soluion to change the background in the output window in Aporia, then i will
gladly hear.
I would like to see this feature too!
Hi all,
I am using Aporia since a week and i am so far very happy with it, but i have
one problem with it and i can't find a solution for it. I can barely read the
output window because the background of this window (element) is dark grey and
the text in it is also grey (not light grey but
Nim programming games day goes on ;) Here's some
[code](https://github.com/akamaus/vindinium-nim-starter-kit) capable of
connecting to [Vindinium](http://forum.nim-lang.org/\\vindinium.org) game
server. Sample bot included.
Wow! Looks like an acceptable solution to me. Hope Grid doesn't get copied
during conversion.
Looks like the deal is still available with the code `wm070216lt`.
+1 PLEASE
[http://golangtutorials.blogspot.de/2011/06/inheritance-and-subclassing-in-go-or.html](http://forum.nim-lang.org///golangtutorials.blogspot.de/2011/06/inheritance-and-subclassing-in-go-or.html)
Hey, come on - I'm a lazy bump ;)
I have some fun to develop a Nim module which lets you write Screeps programs
with Nim (instead of JavaScript.
The module is not ready for a major release but useable if you are curious.
After the API is mostly done I will put it on Nimble.
[Nim-Screeps](https://github.com/oderwat/nim-screeps)
Thanks Garry_Galler for mentioning my
[sequester](https://github.com/fallingduck/sequester) module so I don't have to
;)
**Araq**, Ok. Then, I think you just need to bring to the behavior of some
natural language for the behavior in case of empty separator. In some languages
ââit is permissible:
javascript: console.log("test".split("")); [ 't', 'e', 's',
't' ]
julia:
**dom96**, I'm not against. Let there be an immediate error, it's better than
an endless loop :). And it should be clearly reflected in the documentation.
In Python:
>>> "asd qw asd".split("")
Traceback (most recent call last):
File "", line 1, in
ValueError: empty separator
Let's adopt this behaviour.
15 matches
Mail list logo