February 10, 2010
Nick Sabalausky wrote:
<snip>

> 4. Windows: Create a batch script "Switch to DMD Phobos.bat" that deletes the "dmd" directory tree and then copies "dmd-phobos" to "dmd". Do the same for Tango, and then run either of those when you want to switch.
> 

Or use junction instead.

http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx

Rather handy.

- --
My enormous talent is exceeded only by my outrageous laziness.
http://www.ssTk.co.uk
February 10, 2010
Nick Sabalausky Wrote:

> "downs" <default_357-line@yahoo.de> wrote in message news:hkusr4$hob$1@digitalmars.com...
> > </obscure nerd culture joke>
> 
> Neon Genesis?

Higurashi?
February 10, 2010
"div0" <div0@users.sourceforge.net> wrote in message news:hkv6tn$17rs$1@digitalmars.com...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Nick Sabalausky wrote:
> <snip>
>
>> 4. Windows: Create a batch script "Switch to DMD Phobos.bat" that deletes
>> the "dmd" directory tree and then copies "dmd-phobos" to "dmd". Do the
>> same
>> for Tango, and then run either of those when you want to switch.
>>
>
> Or use junction instead.
>
> http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx
>
> Rather handy.
>

That's awesome. Thanks. I had no idea windows could do that, and I was just thinking even the other day that I wished that it could. Too bad it's only for directories, not files, but still, that should be pretty nice to have.


February 10, 2010
Nick Sabalausky wrote:
> "downs" <default_357-line@yahoo.de> wrote in message news:hkusr4$hob$1@digitalmars.com...
>> </obscure nerd culture joke>
> 
> Neon Genesis? (I haven't seen enough of that show to recognize any 0.99.99 in it though, or maybe I'm just guessing wrong - or overthinking it ;) )

Maybe because they workers in nerv would say 0.000000000000000000000001... but that's the opposite of 0.999999999999999999999999... maybe...
February 10, 2010
"Ary Borenszweig" <ary@esperanto.org.ar> wrote in message news:hkvc5l$1hr8$1@digitalmars.com...
> Nick Sabalausky wrote:
>> "downs" <default_357-line@yahoo.de> wrote in message news:hkusr4$hob$1@digitalmars.com...
>>> </obscure nerd culture joke>
>>
>> Neon Genesis? (I haven't seen enough of that show to recognize any 0.99.99 in it though, or maybe I'm just guessing wrong - or overthinking it ;) )
>
> Maybe because they workers in nerv would say 0.000000000000000000000001... but that's the opposite of 0.999999999999999999999999... maybe...

(Courtesy of my 8th grade math teacher):

[ identity ]
    1 == 1
[ / 3 ]
    1/3 == 0.333...
[ * 3 ]
    3/3 == 0.999...
[ simplify ]
    1 == 0.999...

Also:

1 - 0.000000000000000000000001
= 0.999999999999999999999990


February 10, 2010
On 2010-02-10 14:18, Nick Sabalausky wrote:
> "div0"<div0@users.sourceforge.net>  wrote in message
> news:hkv6tn$17rs$1@digitalmars.com...
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Nick Sabalausky wrote:
>> <snip>
>>
>>> 4. Windows: Create a batch script "Switch to DMD Phobos.bat" that deletes
>>> the "dmd" directory tree and then copies "dmd-phobos" to "dmd". Do the
>>> same
>>> for Tango, and then run either of those when you want to switch.
>>>
>>
>> Or use junction instead.
>>
>> http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx
>>
>> Rather handy.
>>
>
> That's awesome. Thanks. I had no idea windows could do that, and I was just
> thinking even the other day that I wished that it could. Too bad it's only
> for directories, not files, but still, that should be pretty nice to have.

Files? You want it for files too? Have I got a command for you:
fsutil hardlink create <new filename> <existing filename>
(<http://technet.microsoft.com/en-us/library/cc788097%28WS.10%29.aspx>)

You'll need administrator privileges to run it (because most of its other functionality is very low-level, journaling and MFT-sizing and stuff like that), but it looks like it works on XP and up (2000 doesn't appear to support it, but I can't tell for sure). And, of course, it only works on NTFS partitions, but that should be a given.
February 11, 2010

Nick Sabalausky wrote:
> "strtr" <strt@spam.com> wrote in message news:hkuc5h$2hjc$1@digitalmars.com...
>> Nick Sabalausky Wrote:
>>> If you grab the Tango+DMD bundle from the Tango site, then it's exactly
>>> the
>>> same as installing DMD/Phobos: Just unzip, set path, and run.
>> So I shouldn't need to change anything at all in my project? All Phobos calls will by default be handled correctly? That's nice.
>>
> 
> ...
> 
> This is what I'd recommend for D1. This is pretty much the way I do it and I find it very easy:
> 
> ...

In F:\Programs\DigitalMars, I have:

- dmd-1.035-tango-0.99.8
- dmd-1.051
- dmd-1.051-tango-trunk

Then there's dmdenv.cmd on the PATH:

@ECHO OFF
IF "%1"=="" GOTO DEFAULT
IF "%1"=="?" GOTO LIST
set DMDVER=%1
GOTO DOIT

:LIST
echo List of available DMD versions:
pushd F:\Programs\DigitalMars
dir /ad /b dmd-*
popd
goto END

:DEFAULT
SET DMDVER=default

:DOIT
echo Adding dmd-%DMDVER% to PATH...
PUSHD F:\Programs\DigitalMars
SET PATH=%CD%\dmd-%DMDVER%\bin;%PATH%
POPD

:END


Prior to compiling anything, I just run `dmdenv BLAH` to get the correct compiler on the path.

No messing around with junctions or deleting or copying.
February 11, 2010
Nick Sabalausky Wrote:
> 
> At the moment, no. Currently, Tango is D1-only, but druntime (the thing that is supposed to allow Tango and Phobos to play nice together on a single installation) is D2-only. So once Tango is ported to D2, I'd imagine there will probably be a Tango+DMD2 bundle that will include phobos and all your tango *and* phobos calls should work fine. But on D1, a DMD installation is either a tango one or a phobos one (unless you use some ugly hacks).
> 

I thought Tangobos was packaged in and would handle all Phobos calls without much hassle.

February 11, 2010
"Nathan Tuggy" <bugzilla@nathan.tuggycomputer.com> wrote in message news:hkveh8$1nu6$1@digitalmars.com...
> On 2010-02-10 14:18, Nick Sabalausky wrote:
>> "div0"<div0@users.sourceforge.net>  wrote in message news:hkv6tn$17rs$1@digitalmars.com...
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> Nick Sabalausky wrote:
>>> <snip>
>>>
>>>> 4. Windows: Create a batch script "Switch to DMD Phobos.bat" that
>>>> deletes
>>>> the "dmd" directory tree and then copies "dmd-phobos" to "dmd". Do the
>>>> same
>>>> for Tango, and then run either of those when you want to switch.
>>>>
>>>
>>> Or use junction instead.
>>>
>>> http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx
>>>
>>> Rather handy.
>>>
>>
>> That's awesome. Thanks. I had no idea windows could do that, and I was
>> just
>> thinking even the other day that I wished that it could. Too bad it's
>> only
>> for directories, not files, but still, that should be pretty nice to
>> have.
>
> Files? You want it for files too? Have I got a command for you:
> fsutil hardlink create <new filename> <existing filename>
> (<http://technet.microsoft.com/en-us/library/cc788097%28WS.10%29.aspx>)
>
> You'll need administrator privileges to run it (because most of its other functionality is very low-level, journaling and MFT-sizing and stuff like that), but it looks like it works on XP and up (2000 doesn't appear to support it, but I can't tell for sure). And, of course, it only works on NTFS partitions, but that should be a given.

AIUI, that's still a little bit different from a symlink. Unix has a concept of a hardlink too (I think that's what they call it), so I'm assuming that's more like what this is. Still, good to know that it's there.

BTW, after googling to check that "hardlink" is the term Unix uses for the other symlink-ish thing it has, I just stumbled across this: http://www.howtogeek.com/howto/windows-vista/using-symlinks-in-windows-vista/

Symlinks that "don't work quite as well as they could" on Vista and up. (Not much good for me though, as I'm on XP).



February 11, 2010
"strtr" <strtr@spam.com> wrote in message news:hl03h5$2tn8$1@digitalmars.com...
> Nick Sabalausky Wrote:
>>
>> At the moment, no. Currently, Tango is D1-only, but druntime (the thing
>> that
>> is supposed to allow Tango and Phobos to play nice together on a single
>> installation) is D2-only. So once Tango is ported to D2, I'd imagine
>> there
>> will probably be a Tango+DMD2 bundle that will include phobos and all
>> your
>> tango *and* phobos calls should work fine. But on D1, a DMD installation
>> is
>> either a tango one or a phobos one (unless you use some ugly hacks).
>>
>
> I thought Tangobos was packaged in and would handle all Phobos calls without much hassle.
>

Oh, maybe. I'd completely forgotten about tangobos (and never really used it myself). You could try it.