Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Mar 03 2017 15:52
    @dom96 banned @Octopoda7
  • Feb 12 2017 23:57
    @dom96 banned @zzz125
  • Dec 23 2016 19:43
    @dom96 banned @Izrab
Zachary Carter
@zacharycarter
to allow for ^
From IRC (bridge bot)
@FromIRC
<Zevv> @zacharycarter: you're not forced to qualify
Zachary Carter
@zacharycarter
oh? I thought you were
From IRC (bridge bot)
@FromIRC
<Zevv> only for non-unique values
Zachary Carter
@zacharycarter
ah okay
From IRC (bridge bot)
@FromIRC
<livcd> good morning
<livcd> @gogolxdong: you around?
Zachary Carter
@zacharycarter
I think the best thing to do is for an enum named FooEnum prefix all values with fe so like feFoo feBar etc...
From IRC (bridge bot)
@FromIRC
<Zevv> that is soo C
<lqdev[m]> but it doesn't cause as many problems as in C (namespacing)
Zachary Carter
@zacharycarter
I don't really mind if some C patterns are baked into Nim
but others cough Zevv take offense for some reason :P
like when you use const FOO_BAR = 1
I have a feeling that makes Zevv twitch / cringe
From IRC (bridge bot)
@FromIRC
<FromDiscord_> <Shield> you gotta scream those consts
<Zevv> oh no I love that
<Zevv> I'm a C man, and too old to ever change
Zachary Carter
@zacharycarter
lol
From IRC (bridge bot)
@FromIRC
<Zevv> I hate it that nim has no proper preprocessor to abuse
<Zevv> all this fiddling with macros, bah
Zachary Carter
@zacharycarter
hahaha
Alexander Ivanov
@alehander92
you can kinda do it with source filters
liuxiaodong
@gogolxdong
@livcd yes
From IRC (bridge bot)
@FromIRC
<Zevv> wow lets make an m4 compatible source filter
Alexander Ivanov
@alehander92
+ term rewriting macros
From IRC (bridge bot)
@FromIRC
<livcd> @gogolxdong: Do you know xcgui ?
<PMunch> livcd, hard to find any english docs on it it seems
liuxiaodong
@gogolxdong
what's that?
From IRC (bridge bot)
@FromIRC
<livcd> some chinese gui lib
<PMunch> Windows only by the looks of it
liuxiaodong
@gogolxdong
yeah, it's Windows only.
From IRC (bridge bot)
@FromIRC
<PMunch> Hmm, what are the current differences between a normal build and -d:release?
<PMunch> My program fails when I compile with -d:release on 0.20.2, but works fine without
<Zevv> "fails"?
<PMunch> It's doing some decryption, which comes out garbled on a release build
From IRC (bridge bot)
@FromIRC
<leorize> I think the only diff are: stacktrace off, -O3 optimization on
<leorize> I think -O3 is messing up with your code, try passing -d:release -t:'-O0' and see if it's working
<PMunch> Nope, still messed up
<PMunch> Was that supposed to be -t
<leorize> it's --passC, I think the sort form is -t
<leorize> try --opt:none then
<PMunch> Ah, it's definitely -O3 that does it
<PMunch> But passing -O0 to a release build adds both flags, and the GCC compiler chooses O3
<PMunch> Just passing O3 without release messes up as well
<PMunch> Some for O1
From IRC (bridge bot)
@FromIRC
<Zevv> So O3 messes up your nim-generated code?
<PMunch> Hmm, strange, this used to work..
<PMunch> Zevv, I don't think O3 does anything to the code does it?
<Zevv> well, it can break bad code