Re: how do I use newsgroup server?

2011-09-30 Thread Nick Sabalausky
yoyo y...@yo.com wrote in message news:j65ap4$oo6$1...@digitalmars.com... Hey Nick. I found this: http://www.digitalmars.com/webnews/newsgroups.php?renew=0mid=29874sign=plus#29874 This seems to work fine. I think I'll use this for surfing D.learn. Thanks for your time! A lot of people

Sourcing a script's env into D?

2011-09-29 Thread Nick Sabalausky
Due to process separation, the following won't work: script.sh: #!/bin/sh SOME_VAR=foobar test.d: import std.process; void main() { system(./script.sh); assert(environment[SOME_VAR] == foobar); } This, of course, is because the script is run in a totally separate process (AIUI). The

Re: Sourcing a script's env into D?

2011-09-29 Thread Nick Sabalausky
Steven Schveighoffer schvei...@yahoo.com wrote in message news:op.v2k6axvveav7ka@localhost.localdomain... On Thu, 29 Sep 2011 13:31:13 -0400, Nick Sabalausky a@a.a wrote: Due to process separation, the following won't work: script.sh: #!/bin/sh SOME_VAR=foobar test.d: import std.process

Re: Simple I know, but could use some help compiling with make

2011-09-29 Thread Nick Sabalausky
Roderick Gibson knit...@gmail.com wrote in message news:j62d4i$1d8l$1...@digitalmars.com... It's my first foray into the arcana of makefiles and command line compiling. My makefile looks like this: IMPORT = -IC:\Dlang\dmd2\src\ext\Derelict2\import LIB_PATHS =

Re: Simple I know, but could use some help compiling with make

2011-09-29 Thread Nick Sabalausky
Nick Sabalausky a@a.a wrote in message news:j62msu$205t$1...@digitalmars.com... Roderick Gibson knit...@gmail.com wrote in message news:j62d4i$1d8l$1...@digitalmars.com... It's my first foray into the arcana of makefiles and command line compiling. My makefile looks like this: IMPORT

Re: WinRT

2011-09-29 Thread Nick Sabalausky
RenatoL ren...@relhost.net wrote in message news:j62nl3$21g5$1...@digitalmars.com... Hi all. What do you about WinRT? I think this new APIs could be a very interesting point for D... they are open to any language and i think that D is perfect to work with them. What's your opinion? Best

Re: WinRT

2011-09-29 Thread Nick Sabalausky
RenatoL ren...@relhost.net wrote in message news:j62q4v$25tn$1...@digitalmars.com... Eh eh, it may be strange something good come out from MS... but i think this time we could look at this with interest this an object replacement for win32 and the OS exposes it in an open way... i believe

Re: How to return the current object

2011-09-27 Thread Nick Sabalausky
alex a...@nospam.com wrote in message news:j5onj9$2f85$1...@digitalmars.com... Is there a way to return the current object in any part of the code, even from void main? (which is still a type void). I have tried the this thing but it doesn't work Main isn't a member of any object, so there

Re: D on other platforms than Win,Lin,Mac?

2011-09-06 Thread Nick Sabalausky
Trass3r u...@known.com wrote in message news:op.v1edf3bj3ncmek@enigma... I've heard that our company is considering the T20 from Toradex.com for a new project with remote hardware. The platform runs on Nvidia Tegra and Linux. Since I have been very impressed by the D programming language,

Re: Regarding nothrow and @safe

2011-08-25 Thread Nick Sabalausky
Jacob Carlborg d...@me.com wrote in message news:j2qn7n$1db7$1...@digitalmars.com... On 2011-08-21 02:26, Jonathan M Davis wrote: The short answer: You don't. It's an incredibly bad idea. The long answer: You catch Error - or OutOfMemoryError if you want that specific one. So, you could try

Reflection to detect public/private/etc?

2011-08-12 Thread Nick Sabalausky
Is there a way to check whether a class member (or other identifier) is public, private, protected, package or extern? Or at least public/extern vs private/protected/package? (I suspect this one may at least be possible with some __traits(compiles, ...) trickery (assuming private actually

Re: Reflection to detect public/private/etc?

2011-08-12 Thread Nick Sabalausky
Adam D. Ruppe destructiona...@gmail.com wrote in message news:j242up$24so$1...@digitalmars.com... I really want to get this figured out though so I can drop the leading underscore from some web.d names... Heh, that's exactly what I had in mind ;)

Re: Reflection to detect public/private/etc?

2011-08-12 Thread Nick Sabalausky
Adam D. Ruppe destructiona...@gmail.com wrote in message news:j242up$24so$1...@digitalmars.com... There's no way I've found, aside from direct access (so not via getMembers) and seeing it it fails to compile. I just gave it a try. I think I may be hitting against a bug in __traits(compiles)

Re: Reflection to detect public/private/etc?

2011-08-12 Thread Nick Sabalausky
Nick Sabalausky a@a.a wrote in message news:j246df$2ael$1...@digitalmars.com... Adam D. Ruppe destructiona...@gmail.com wrote in message news:j242up$24so$1...@digitalmars.com... There's no way I've found, aside from direct access (so not via getMembers) and seeing it it fails to compile

Re: Reflection to detect public/private/etc?

2011-08-12 Thread Nick Sabalausky
Ok, this seems to work for member functions (it returns false for non-functions, but I think that's fixable by just detecting function vs not function and then using the appropriate __traits(compiles)). enum check = __traits(compiles, { alias ParameterTypeTuple!(__traits(getMember, Foo,

Re: NaCl stable ABI

2011-08-04 Thread Nick Sabalausky
Andrej Mitrovic andrej.mitrov...@gmail.com wrote in message news:mailman.2102.1312471399.14074.digitalmars-d-le...@puremagic.com... On 8/4/11, Nick Sabalausky a@a.a wrote: There is nothing you've mentioned that can't be (better) fixed without cramming everything into a browser. Where would

Re: NaCl stable ABI

2011-08-04 Thread Nick Sabalausky
Andrej Mitrovic andrej.mitrov...@gmail.com wrote in message news:mailman.2111.1312489332.14074.digitalmars-d-le...@puremagic.com... I think we're misunderstanding each other. I'm not saying move the game to the browser, just the part of the game where you can browse the servers for that game.

Re: NaCl stable ABI

2011-08-03 Thread Nick Sabalausky
Peter Alexander peter.alexander...@gmail.com wrote in message news:j1asck$81d$1...@digitalmars.com... The games industry has been crying out for something like NaCl for a long time. It is exactly what we want: - Ability to launch games within browser without a plugin download - Platform

Re: NaCl stable ABI

2011-08-03 Thread Nick Sabalausky
Nick Sabalausky a@a.a wrote in message news:j1cb3a$2qe7$1...@digitalmars.com... I mean this is the stupid motherfuck industry that's spent the last ten years completely ignoring who they're *supposed* to be (***VIDEOGAME*** developers) and instead running around as a bunch of goddamn

Re: NaCl stable ABI

2011-08-03 Thread Nick Sabalausky
Andrej Mitrovic andrej.mitrov...@gmail.com wrote in message news:mailman.2097.1312408853.14074.digitalmars-d-le...@puremagic.com... I liked QLive before they forced 30 second commercials on server joins for non-subscribers. :( It was cool being able to casually browse to other tabs, then going

Re: NaCl stable ABI

2011-08-01 Thread Nick Sabalausky
Adam D. Ruppe destructiona...@gmail.com wrote in message news:j170it$1bib$1...@digitalmars.com... This still sounds as utterly useless as it always has been. Client-side scripting that throws away that god-awful JS crap being utterly useless?

Re: NaCl stable ABI

2011-08-01 Thread Nick Sabalausky
bearophile bearophileh...@lycos.com wrote in message news:j17g6i$2a63$1...@digitalmars.com... It allows to run code efficiently (in my tests something like 5-10% slower than native code), and it's supposed to be (or to become) safe. There are plans for usage of the 3D GPU and audio. It looks

Re: NaCl stable ABI

2011-08-01 Thread Nick Sabalausky
Adam Ruppe destructiona...@gmail.com wrote in message news:j17fi9$280r$1...@digitalmars.com... Nick Sabalausky wrote: Client-side scripting that throws away that god-awful JS crap being utterly useless? As far as I can tell, it doesn't actually throw away JS! I've never actually used Google

Re: NaCl stable ABI

2011-08-01 Thread Nick Sabalausky
Adam Ruppe destructiona...@gmail.com wrote in message news:j17jkf$2hm0$1...@digitalmars.com... From what I can tell, it's Google's alternative to Flash; they want to make crappy games on it. Consider that the first thing they ported to it, again, just like their javascript nonsense, was

make -fposix.mak

2011-07-30 Thread Nick Sabalausky
Am I forgetting something, or is make -fposix.mak supposed to build the DMD executable on linux. I'm just getting: make: Nothing to be done for `all'. This is on the zipped 2.054 release, from the src/dmd directory. It seemed to work for 1.066

Re: make -fposix.mak

2011-07-30 Thread Nick Sabalausky
Nick Sabalausky a@a.a wrote in message news:j106ib$1t43$1...@digitalmars.com... Am I forgetting something, or is make -fposix.mak supposed to build the DMD executable on linux. I'm just getting: make: Nothing to be done for `all'. This is on the zipped 2.054 release, from the src/dmd

Nick is clearly an idiot (Was: make -fposix.mak)

2011-07-30 Thread Nick Sabalausky
Nick Sabalausky a@a.a wrote in message news:j106ib$1t43$1...@digitalmars.com... Am I forgetting something, or is make -fposix.mak supposed to build the DMD executable on linux. I'm just getting: make: Nothing to be done for `all'. This is on the zipped 2.054 release, from the src/dmd

Re: Versioned extern?

2011-07-30 Thread Nick Sabalausky
Aleksandar Ruzicic ruzicic.aleksan...@gmail.com wrote in message news:mailman.1954.1311949602.14074.digitalmars-d-le...@puremagic.com... Ouh, haven't read that you don't want code to be mixed-in.. In that case.. I dunno :) It's not that I didn't want to, it's just that I was wondering if there

Re: Frontend and backend communication

2011-07-27 Thread Nick Sabalausky
Dainius (GreatEmerald) past...@gmail.com wrote in message news:mailman.1931.1311788506.14074.digitalmars-d-le...@puremagic.com... For example, now I have a function Shuffle() that calls PlaySound(SHUFFLE). Shuffle() is a backend function, while PlaySound() is a frontend one, so obviously it

Re: Frontend and backend communication

2011-07-27 Thread Nick Sabalausky
Dainius (GreatEmerald) past...@gmail.com wrote in message news:mailman.1933.1311797423.14074.digitalmars-d-le...@puremagic.com... Hm, well, at least I don't know how it's possible for a binary to overwrite/capture a library's function. Would you care to give an example? I'm not sure what you

Re: Importing D libraries

2011-07-26 Thread Nick Sabalausky
Andrew Wiley wiley.andre...@gmail.com wrote in message news:mailman.1914.1311673246.14074.digitalmars-d-le...@puremagic.com... On Tue, Jul 26, 2011 at 2:02 AM, Dainius (GreatEmerald) past...@gmail.comwrote: I must be missing something incredibly obvious here, but I can't find out what it

Re: Importing D libraries

2011-07-26 Thread Nick Sabalausky
Pelle pelle.mans...@gmail.com wrote in message news:op.vy74cwejzu79i9@pelle-d2608-a1... On Tue, 26 Jul 2011 13:06:56 +0200, Dainius (GreatEmerald) past...@gmail.com wrote: I updated the DMD and tried RDMD, but still no luck. Linker errors galore. You can see all of them here:

Re: How to get stack trace on Windows?

2011-07-24 Thread Nick Sabalausky
Andrej Mitrovic andrej.mitrov...@gmail.com wrote in message news:mailman.1893.1311501384.14074.digitalmars-d-le...@puremagic.com... This is what works for me: module test; import std.stdio; void main() { foo(); } void foo() { bar(); } void bar() { assert(0); }

Re: Need OMF MySQL lib that actually f^*^ works...

2011-07-23 Thread Nick Sabalausky
Nick Sabalausky a@a.a wrote in message news:j0b4r1$icb$1...@digitalmars.com... Anyone have a known-working Windows OMF library for MySQL? Static or dynamic, I don't care. I've tried fucking everything and I can't get the dang thing to work. Static was a total no-go. With dynamic, using

Re: Need OMF MySQL lib that actually f^*^ works...

2011-07-23 Thread Nick Sabalausky
Nick Sabalausky a@a.a wrote in message news:j0dqhg$2cvs$1...@digitalmars.com... Nick Sabalausky a@a.a wrote in message news:j0b4r1$icb$1...@digitalmars.com... Anyone have a known-working Windows OMF library for MySQL? Static or dynamic, I don't care. I've tried fucking everything and I

Building DMD from git

2011-07-23 Thread Nick Sabalausky
Ok, this is probably some stupid little issue, but I'm getting object.d: Error: module object is in file 'object.d' which cannot be read when I try to use a DMD I build from git. Here's how I'm building it all: - [DMC is already installed and on the

Re: Building DMD from git

2011-07-23 Thread Nick Sabalausky
Jonathan M Davis jmdavisp...@gmx.com wrote in message news:mailman.1890.1311472074.14074.digitalmars-d-le...@puremagic.com... It can't find object_.d. It means that the path to druntime (and probably the path to phobos as well) is screwed up. Your dmd.conf (or sc.ini I guess, since you

Re: How to get stack trace on Windows?

2011-07-23 Thread Nick Sabalausky
Dmitry Olshansky dmitry.o...@gmail.com wrote in message news:j0boln$1l4i$1...@digitalmars.com... On 22.07.2011 15:02, Nick Sabalausky wrote: Dmitry Olshanskydmitry.o...@gmail.com wrote in message news:j0bgt7$176q$1...@digitalmars.com... Last time I've seen stack trace it was due

Versioned extern?

2011-07-23 Thread Nick Sabalausky
Is there a way to have a section of code be extern(C) on one OS and extern(Windows) on another OS, without resorting making the code in question a mixin? These doesn't appear to work: -- version(Windows) { enum callingConvention = Windows; } else { enum

Need OMF MySQL lib that actually f^*^ works...

2011-07-22 Thread Nick Sabalausky
Anyone have a known-working Windows OMF library for MySQL? Static or dynamic, I don't care. I've tried fucking everything and I can't get the dang thing to work. Static was a total no-go. With dynamic, using implib I got it to link, but calling any of it resulted in an Access Violation. Using

Re: How to get stack trace on Windows?

2011-07-22 Thread Nick Sabalausky
Dmitry Olshansky dmitry.o...@gmail.com wrote in message news:j0bgt7$176q$1...@digitalmars.com... On 22.07.2011 6:54, Nick Sabalausky wrote: I'm not getting any of the function names on the stack traces. I tried everything I found in here: http://www.digitalmars.com/d/archives/digitalmars/D

Re: Need OMF MySQL lib that actually f^*^ works...

2011-07-22 Thread Nick Sabalausky
Robert Clipsham rob...@octarineparrot.com wrote in message news:j0ce0t$2rte$1...@digitalmars.com... On 22/07/2011 07:20, Nick Sabalausky wrote: Anyone have a known-working Windows OMF library for MySQL? Static or dynamic, I don't care. I've tried fucking everything and I can't get the dang

Re: Need OMF MySQL lib that actually f^*^ works...

2011-07-22 Thread Nick Sabalausky
Dmitry Olshansky dmitry.o...@gmail.com wrote in message news:j0cj58$5i5$1...@digitalmars.com... On 22.07.2011 23:06, Nick Sabalausky wrote: Robert Clipshamrob...@octarineparrot.com wrote in message news:j0ce0t$2rte$1...@digitalmars.com... On 22/07/2011 07:20, Nick Sabalausky wrote: Anyone

Re: Small problem with multi-line strings

2011-07-21 Thread Nick Sabalausky
bearophile bearophileh...@lycos.com wrote in message news:j0ac3m$29hj$1...@digitalmars.com... Multi-line strings are handy, but I have a small problem. This is an example, it has a problem, there is an unwanted newline at the beginning: writeln( - First item: 150 - Second item: 200 -

Re: does the x64 compiler for linux make x64 executables?

2011-07-21 Thread Nick Sabalausky
McAnany, Charles E mcana...@rose-hulman.edu wrote in message news:mailman.1844.1311309969.14074.digitalmars-d-le...@puremagic.com... Hi, all. So I see that there is an Ubuntu dmd that has x86_64 as the CPU column. Before I install Ubuntu to great disappointment, does this mean that I get a 64

Re: This seems like what could be a common cause of bugs

2011-07-11 Thread Nick Sabalausky
Steven Schveighoffer schvei...@yahoo.com wrote in message news:op.vyge30ogeav7ka@localhost.localdomain... On Sat, 09 Jul 2011 13:28:25 -0400, Nick Sabalausky a@a.a wrote: Steven Schveighoffer schvei...@yahoo.com wrote in message news:op.vybq4xkkeav7ka@localhost.localdomain... On Fri, 08 Jul

Re: This seems like what could be a common cause of bugs

2011-07-09 Thread Nick Sabalausky
Steven Schveighoffer schvei...@yahoo.com wrote in message news:op.vybq4xkkeav7ka@localhost.localdomain... On Fri, 08 Jul 2011 18:45:58 -0400, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: This is just an observation, not a question or anything. void main() { enum width = 100;

Need to do some dirty UTF-8 handling

2011-06-25 Thread Nick Sabalausky
Sometimes I need to bring data into a string, and need to be able to treat it as an actual string, but don't actually care if the entire thing is technically valid UTF-8 or not, don't care if invalid bytes don't get preserved right, and can't have any utf exceptions being thrown regardless of

Re: Need to do some dirty UTF-8 handling

2011-06-25 Thread Nick Sabalausky
Vladimir Panteleev vladi...@thecybershadow.net wrote in message news:op.vxmuvzqbtuz...@cybershadow.mshome.net... string s; foreach (dchar c; r) That doesn't throw on an invalid sequence?

Re: Need to do some dirty UTF-8 handling

2011-06-25 Thread Nick Sabalausky
Jonathan M Davis jmdavisp...@gmx.com wrote in message news:mailman.1214.1309008317.14074.digitalmars-d-le...@puremagic.com... On 2011-06-25 02:00, Nick Sabalausky wrote: Sometimes I need to bring data into a string, and need to be able to treat it as an actual string, but don't actually care

Re: Need to do some dirty UTF-8 handling

2011-06-25 Thread Nick Sabalausky
Andrej Mitrovic andrej.mitrov...@gmail.com wrote in message news:mailman.1215.1309019944.14074.digitalmars-d-le...@puremagic.com... I've had a similar requirement some time ago. I've had to copy and modify the phobos function std.utf.decode for a custom text editor because the function throws

Re: Need to do some dirty UTF-8 handling

2011-06-25 Thread Nick Sabalausky
Dmitry Olshansky dmitry.o...@gmail.com wrote in message news:iu5n32$2vjd$1...@digitalmars.com... On 26.06.2011 1:49, Nick Sabalausky wrote: Andrej Mitrovicandrej.mitrov...@gmail.com wrote in message news:mailman.1215.1309019944.14074.digitalmars-d-le...@puremagic.com... I've had a similar

Re: Need to do some dirty UTF-8 handling

2011-06-25 Thread Nick Sabalausky
Dmitry Olshansky dmitry.o...@gmail.com wrote in message news:iu5tan$ets$1...@digitalmars.com... On 26.06.2011 3:25, Nick Sabalausky wrote: Dmitry Olshanskydmitry.o...@gmail.com wrote in message news:iu5n32$2vjd$1...@digitalmars.com... On 26.06.2011 1:49, Nick Sabalausky wrote: Andrej

Re: It's dsss live ?

2011-06-14 Thread Nick Sabalausky
Zardoz luis.panad...@gmail.com wrote in message news:it8g8k$1kbo$1...@digitalmars.com... And bud, rebuild and others Any recomendation or what are live actualy and works with D2 ? rdmd It's included with DMD, but I'd highly recommend grabbing the latest version off of GitHub, which has

Re: WindowsAPI Binding - Linker Errors

2011-06-13 Thread Nick Sabalausky
Loopback elliott.darf...@gmail.com wrote in message news:it4ud4$1kf5$1...@digitalmars.com... Hello! I've been test programming win32 applications recently, and since the phobos win32 library is so limited, I decided to download and test the WindowsAPI Binding

Re: WindowsAPI Binding - Linker Errors

2011-06-13 Thread Nick Sabalausky
Nick Sabalausky a@a.a wrote in message news:it5ui1$1l75$1...@digitalmars.com... Loopback elliott.darf...@gmail.com wrote in message news:it4ud4$1kf5$1...@digitalmars.com... Hello! I've been test programming win32 applications recently, and since the phobos win32 library is so limited, I

Re: DMD Backend: Deciding instructions to use/avoid?

2011-06-11 Thread Nick Sabalausky
Andrew Wiley wiley.andre...@gmail.com wrote in message news:mailman.762.1307693296.14074.digitalmars-d-le...@puremagic.com... On Thu, Jun 9, 2011 at 5:58 PM, Nick Sabalausky a@a.a wrote: Bernard Helyer b.hel...@gmail.com wrote in message news:isdgdc$m3a$1...@digitalmars.com... If you run

Serialization libs?

2011-06-10 Thread Nick Sabalausky
Are there any good D2 serialization libs out there that utilize introspecition (ie, don't have to manually specify all the member of each type), handle cyclic graphs and have flexible output?

Re: DMD Backend: Deciding instructions to use/avoid?

2011-06-09 Thread Nick Sabalausky
Nick Sabalausky a@a.a wrote in message news:isoltk$1ehd$1...@digitalmars.com... Don nos...@nospam.com wrote in message news:isoh6c$15jb$1...@digitalmars.com... Nick Sabalausky wrote: So my main question: Does DMD do anything like, say, detecting the CPU at compile time and then enabling

Re: DMD Backend: Deciding instructions to use/avoid?

2011-06-09 Thread Nick Sabalausky
Bernard Helyer b.hel...@gmail.com wrote in message news:isdgdc$m3a$1...@digitalmars.com... If you run the program in GDB, can you disassemble when the error is given? That may give you the instruction the kernel is assasinating your process for. I can try that if anyone can help walk me

Re: DMD Backend: Deciding instructions to use/avoid?

2011-06-08 Thread Nick Sabalausky
Don nos...@nospam.com wrote in message news:isoh6c$15jb$1...@digitalmars.com... Nick Sabalausky wrote: So my main question: Does DMD do anything like, say, detecting the CPU at compile time and then enabling instructions only available on that CPU and up? Or does it do anything like always

Re: Install DWT2 using DMD and Tango

2011-06-08 Thread Nick Sabalausky
Andrew Wiley wiley.andre...@gmail.com wrote in message news:mailman.718.1307566795.14074.digitalmars-d-le...@puremagic.com... On Wed, Jun 8, 2011 at 11:54 AM, Fabian contact-...@freenet.de wrote: Hi I'm trying to install DWT2 to create GUI applications with D. I have downloaded DWT2 with

Re: Web Development

2011-06-05 Thread Nick Sabalausky
Renato ren...@relhost.net wrote in message news:isgr3g$2tdk$1...@digitalmars.com... Hi all. I'm interested in using D as full replacement of C#. It's all fine in many area but i'm having problems replacing C # in web development. Of course the marriage between C# and AspNet is very strong.

DMD Backend: Deciding instructions to use/avoid?

2011-06-04 Thread Nick Sabalausky
I'm working with Jacob to try to resolve an issue where D programs compiled on his Ubuntu box (in 32-bit/32-bit) error out on my Ubuntu box with Illegal instruction. At first we thought it was because my OS was an older version than his. But he tried compiling on an older OS than mine and it

How to do cast(ubyte[4])some_uint in D1?

2011-06-02 Thread Nick Sabalausky
In D2, I can treat a uint as an array of ubytes by doing this: uint num = /+...whatever...+/; ubyte[] = cast(ubyte[4])num; How do I do that in D1? IIRC, D1 requires an explicit slice operator to convert from a static-array to a slice/dynamic-array, so I tried this: ubyte[] =

Re: How to do cast(ubyte[4])some_uint in D1?

2011-06-02 Thread Nick Sabalausky
Timon Gehr timon.g...@gmx.ch wrote in message news:is7ojo$2ggv$1...@digitalmars.com... Nick Sabalausky: In D2, I can treat a uint as an array of ubytes by doing this: uint num = /+...whatever...+/; ubyte[] = cast(ubyte[4])num; How do I do that in D1? Using a union is probably the safest

Re: How to do cast(ubyte[4])some_uint in D1?

2011-06-02 Thread Nick Sabalausky
Nick Sabalausky a@a.a wrote in message news:is8qu8$1cq3$1...@digitalmars.com... Timon Gehr timon.g...@gmx.ch wrote in message news:is7ojo$2ggv$1...@digitalmars.com... Nick Sabalausky: In D2, I can treat a uint as an array of ubytes by doing this: uint num = /+...whatever...+/; ubyte

wstring always 2-byte aligned?

2011-06-02 Thread Nick Sabalausky
I found a user comment on an MDSN Windows API reference page (Which I've since lost, but I think it was somewhere in the Registry section.) that claims that the Unicode-taking functions in the Windows API (or at least some of them) require the unicode strings to be aligned on a two-byte

Re: nested comments

2011-05-31 Thread Nick Sabalausky
Steven Schveighoffer schvei...@yahoo.com wrote in message news:op.vwcxmwfgeav7ka@localhost.localdomain... On Mon, 30 May 2011 20:43:18 -0400, bearophile bearophileh...@lycos.com wrote: Jesse Phillips: The purpose is commenting out code, but note that there is also version(none) { } which

Re: nested comments

2011-05-30 Thread Nick Sabalausky
bearophile bearophileh...@lycos.com wrote in message news:is1dj6$ihb$1...@digitalmars.com... Jesse Phillips: The purpose is commenting out code, but note that there is also version(none) { } which is never compiled in. version(none) {} is probably the official way to comment out code. And

Re: nested comments

2011-05-30 Thread Nick Sabalausky
Ary Manzana a...@esperanto.org.ar wrote in message news:is1hsa$p53$1...@digitalmars.com... On 5/31/11 7:58 AM, Nick Sabalausky wrote: bearophilebearophileh...@lycos.com wrote in message news:is1dj6$ihb$1...@digitalmars.com... Jesse Phillips: The purpose is commenting out code, but note

Re: Empty const strings result in linker errors.

2011-05-29 Thread Nick Sabalausky
Jacob Carlborg d...@me.com wrote in message news:iru404$4qp$1...@digitalmars.com... In DMD 1.068 I get linker errors, missing symbols, on empty strings that are const. Is this a bug or intentional? It's an already-reported bug in D1: http://d.puremagic.com/issues/show_bug.cgi?id=4315

Re: How to break module into multiple file.

2011-05-21 Thread Nick Sabalausky
Matthew Ong on...@yahoo.com wrote in message news:ir7qio$28mn$1...@digitalmars.com... On 5/20/2011 4:23 AM, Nick Sabalausky wrote: Matthew Ongon...@yahoo.com wrote in message news:ir3801$84b$1...@digitalmars.com... As for the real reason it is for: That current D layout seem to limit

Re: web development in D

2011-05-21 Thread Nick Sabalausky
joe j...@studiofortress.com wrote in message news:ir8frr$ait$1...@digitalmars.com... Second, from your own experience using D do think it would make a good or bad choice for a web development language? I'd really say that a good choice for a web development language is whatever you find to

Re: Why does RDMD evaluate templates twice?

2011-05-18 Thread Nick Sabalausky
Andrej Mitrovic n...@none.none wrote in message news:ir1tv8$12ch$1...@digitalmars.com... This is a very odd behavior I've been seeing for quite a while now with RDMD. DMD doesn't recreate this behavior. Take this module: module test; template Foo(T) { pragma(msg, test); } alias

Re: Why does RDMD evaluate templates twice?

2011-05-18 Thread Nick Sabalausky
Nick Sabalausky a@a.a wrote in message news:ir2750$1hd2$1...@digitalmars.com... rdmd --chatty test.d dmd -v -o- test.d test.d.deps Compile Time md -ofC:\DOCUME~1\NICKSA~1\LOCALS~1\Temp\.rdmd\test-d-A8FD055311F603E847689B6FC07BFF23.exe -odC:\DOCUME~1\NICKSA~1\LOCALS~1\Temp\.rdmd

Re: Why does RDMD evaluate templates twice?

2011-05-18 Thread Nick Sabalausky
Nick Sabalausky a@a.a wrote in message news:ir27ao$1hob$1...@digitalmars.com... Nick Sabalausky a@a.a wrote in message news:ir2750$1hd2$1...@digitalmars.com... rdmd --chatty test.d dmd -v -o- test.d test.d.deps Compile Time d -ofC:\DOCUME~1\NICKSA~1\LOCALS~1\Temp\.rdmd\test-d

Re: Why does RDMD evaluate templates twice?

2011-05-18 Thread Nick Sabalausky
Nick Sabalausky a@a.a wrote in message news:ir27fa$1hs0$1...@digitalmars.com... Nick Sabalausky a@a.a wrote in message news:ir27ao$1hob$1...@digitalmars.com... Nick Sabalausky a@a.a wrote in message news:ir2750$1hd2$1...@digitalmars.com... rdmd --chatty test.d dmd -v -o- test.d

Re: How To Dynamic Web Rendering?

2011-05-17 Thread Nick Sabalausky
Jacob Carlborg d...@me.com wrote in message news:iqt6kb$1nd1$1...@digitalmars.com... On 2011-05-16 15:43, Adam D. Ruppe wrote: Instead you move the view layer into the model or controller layer. How's that any different? Is that really what's happening? Any template has variables made

Re: How To Dynamic Web Rendering?

2011-05-17 Thread Nick Sabalausky
Nick Sabalausky a@a.a wrote in message news:iqtarl$229l$1...@digitalmars.com... Jacob Carlborg d...@me.com wrote in message news:iqt6kb$1nd1$1...@digitalmars.com... On 2011-05-16 15:43, Adam D. Ruppe wrote: Instead you move the view layer into the model or controller layer. How's that any

Re: How To Dynamic Web Rendering?

2011-05-17 Thread Nick Sabalausky
Adam D. Ruppe destructiona...@gmail.com wrote in message news:iqua65$rm2$1...@digitalmars.com... auto f = cast(Form) document.getElementById(code-runner); f.setValue(code, `void main() { assert(0, Hello, world!); }`); Minor suggestion: There should be an overload of getElementById that's

Re: How To Dynamic Web Rendering?

2011-05-16 Thread Nick Sabalausky
Alexander aldem+dm...@nk7.net wrote in message news:iqqq9p$ka6$1...@digitalmars.com... On 16.05.2011 01:21, Robert Clipsham wrote: I can't be bothered collecting lots of references, but having done web development both professionally (not as much as Nick) and non-professionally, I can tell

Re: How To Dynamic Web Rendering?

2011-05-16 Thread Nick Sabalausky
Adam D. Ruppe destructiona...@gmail.com wrote in message news:iqrj55$24d8$1...@digitalmars.com... Alexander wrote: Database access vs a session cache is another thing you'd profile. I suspect you'd be surprised - database engine authors spend a lot of time making sure their engine does fast

Re: How To Dynamic Web Rendering?

2011-05-15 Thread Nick Sabalausky
Alexander aldem+dm...@nk7.net wrote in message news:iqobn4$1h7v$1...@digitalmars.com... On 15.05.2011 01:25, Adam Ruppe wrote: #1: Wordpress /is/ horrible. One of the worst projects I have to deal with for work... It works, and does it well enough. There are many projects which look

Re: How To Dynamic Web Rendering?

2011-05-15 Thread Nick Sabalausky
Alexander aldem+dm...@nk7.net wrote in message news:iqocgq$1iko$1...@digitalmars.com... On 15.05.2011 06:42, Nick Sabalausky wrote: All of that *was considered acceptable practice*. But the fact they found it acceptable obviously doesn't change the fact that those are horrible practices

Re: How To Dynamic Web Rendering?

2011-05-15 Thread Nick Sabalausky
Alexander aldem+dm...@nk7.net wrote in message news:iqoc6r$1hqu$1...@digitalmars.com... On 15.05.2011 06:28, Nick Sabalausky wrote: There's always shitty programmers out there. *Especially* in web development. Looks like most of them are, right? :) Unfortunately, yes. Not familiar

Re: How To Dynamic Web Rendering?

2011-05-15 Thread Nick Sabalausky
Alexander aldem+dm...@nk7.net wrote in message news:iqpi2b$pc7$1...@digitalmars.com... Sure, Apple has his share of problems. But they are rich and popular. Do you, with your perfect solutions? ;) Sorry, I forgot that what's popular is always right and what's right is always popular.

Re: How To Dynamic Web Rendering?

2011-05-15 Thread Nick Sabalausky
Alexander aldem+dm...@nk7.net wrote in message news:iqpi2b$pc7$1...@digitalmars.com... Nothing is rational for anyone because most people are irrational imbeciles. Thank you, Nick. Now I know who I am :) FWIW, I didn't intend anything I've said as anything personal against you. It

Re: How To Dynamic Web Rendering?

2011-05-14 Thread Nick Sabalausky
Alexander aldem+dm...@nk7.net wrote in message news:iqm4ru$qj3$1...@digitalmars.com... On 13.05.2011 17:19, Adam D. Ruppe wrote: It's *much* better, especially for rapid development. The compiler will tell me if my changes anywhere break things anywhere else, so I can modify with confidence.

Re: How To Dynamic Web Rendering?

2011-05-14 Thread Nick Sabalausky
Alexander aldem+dm...@nk7.net wrote in message news:iqmrh6$22b0$1...@digitalmars.com... On 14.05.2011 21:48, Nick Sabalausky wrote: That's not an advantage at all. That was considered an advantage of PHP (and ASP) ages ago, but then web developers quickly discovered that was a horrible

Re: How To Dynamic Web Rendering?

2011-05-14 Thread Nick Sabalausky
Nick Sabalausky a@a.a wrote in message news:iqnl10$au2$1...@digitalmars.com... Alexander aldem+dm...@nk7.net wrote in message news:iqmrh6$22b0$1...@digitalmars.com... On 14.05.2011 21:48, Nick Sabalausky wrote: That's not an advantage at all. That was considered an advantage of PHP

Re: How To Dynamic Web Rendering?

2011-05-14 Thread Nick Sabalausky
Adam D. Ruppe destructiona...@gmail.com wrote in message news:iqkbm3$8gc$1...@digitalmars.com... Nick Sabalausky wrote: Be glad it's not VB6, or worse, VBScript. Oh, I know it! One of my side jobs I picked up this year is maintaining somd old VBS program, using classic ASP. There's so much

Re: How To Dynamic Web Rendering?

2011-05-13 Thread Nick Sabalausky
Jacob Carlborg d...@me.com wrote in message news:iqilmh$7tk$1...@digitalmars.com... On 2011-05-12 16:45, Adam Ruppe wrote: Could you share how or show an URL that provide sample code to do that in D? Check out my D api demo: http://arsdnet.net/cgi-bin/apidemo/ Here's the source code

Re: How to break module into multiple file.

2011-05-13 Thread Nick Sabalausky
Jason House jason.james.ho...@gmail.com wrote in message news:iqjamt$1e5b$1...@digitalmars.com... I wonder a bit why you want one file per object? Is it to avoid unnecessary imports? Make finding object definitions easier? Or a style preference? I think replies by others covered all but the

Re: How To Dynamic Web Rendering?

2011-05-13 Thread Nick Sabalausky
Adam D. Ruppe destructiona...@gmail.com wrote in message news:iqji6m$1se1$1...@digitalmars.com... Jacob Carlborg wrote: How is it working out with a static type system, compared to a dynamic, for web development? It's *much* better, especially for rapid development. The compiler will tell

Re: How To Dynamic Web Rendering?

2011-05-12 Thread Nick Sabalausky
Matthew Ong on...@yahoo.com wrote in message news:iqgo17$2nqv$1...@digitalmars.com... Hi Adam, Thanks again for the sharp pointed answer. What is the counterpart in D for replacing JSP/ASP/JRuby on Rail or some sort of dynamic web base development? I use D for web work by using the standard

Re: How to break module into multiple file.

2011-05-12 Thread Nick Sabalausky
Matthew Ong on...@yahoo.com wrote in message news:iqgnj9$2n0j$1...@digitalmars.com... Hi, According to: http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.comgroup=digitalmars.Dartnum=135947 And also source code within dmd2/src It seems that there is only one file per

Re: How To Dynamic Web Rendering?

2011-05-12 Thread Nick Sabalausky
Adam Ruppe destructiona...@gmail.com wrote in message news:iqhha9$17dp$1...@digitalmars.com... // Read in HTTP request headers Actually, that's not quite right. The HTTP headers are sent as environment variables. stdin gives you the POST variables - with the encoding given in the

Re: [going OT] Re: How To Dynamic Web Rendering?

2011-05-12 Thread Nick Sabalausky
Adam D. Ruppe destructiona...@gmail.com wrote in message news:iqhkdn$1co1$1...@digitalmars.com... Ugh. Apperently, too much Flash/PHP/HTML/etc has rotted my mind... Speaking of brain rot, the first version of my cgi.d actually aimed to mimic PHP! Some stupid part of me actually started to

Re: How to break module into multiple file.

2011-05-12 Thread Nick Sabalausky
Alexander aldem+dm...@nk7.net wrote in message news:iqh6gk$hpn$1...@digitalmars.com... On 12.05.2011 17:05, Jonathan M Davis wrote: A module is always one file and only one file. ...which could be really, really big due to this limitation (std.datetime), and this is not always convenient

<    1   2   3   4   5   >