www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2994] New: Incomplete "Predefined Versions" documentation

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2994

           Summary: Incomplete "Predefined Versions" documentation
           Product: D
           Version: 1.043
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: www.digitalmars.com
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: cbkbbejeap mailinator.com


The D1 and D2 documentation for "Predefined Versions" does not include
macintosh/osx, does not mention how FreeBSD is handled, and does not point out
any distinction between "linux" and "Posix".

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 16 2009
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2994





--- Comment #1 from Nick Sabalausky <cbkbbejeap mailinator.com>  2009-05-16
14:28:25 PDT ---
It also doesn't mention how Solaris is handled.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 16 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2994


Anders F Bj <afb algonet.se> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |afb algonet.se




--- Comment #2 from Anders F Bj <afb algonet.se>  2009-05-17 02:51:11 PDT ---
DMD doesn't handle Solaris yet afaik, GDC calls it "solaris":
http://www.prowiki.org/wiki4d/wiki.cgi?DocComments/Version

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 17 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2994


Tomas Lindquist Olsen <tomas famolsen.dk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tomas famolsen.dk




--- Comment #3 from Tomas Lindquist Olsen <tomas famolsen.dk>  2009-05-17
04:42:38 PDT ---
"Solaris" is a predefined version identifier in DMD 1.045

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 17 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2994


Stewart Gordon <smjg iname.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg iname.com




--- Comment #4 from Stewart Gordon <smjg iname.com>  2009-05-17 14:37:40 PDT ---
How is the distinction between GUI and console apps on Mac OS X handled, given
such incompatibilities between them as the line break style?

And what about whatever other 32+-bit platforms exist?  (Game consoles? 
iPhone?  ....)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 17 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2994





--- Comment #5 from Stewart Gordon <smjg iname.com>  2009-05-18 13:57:17 PDT ---
I'm thinking now that the best solution may be to have an official list of
version identifiers for OSs maintained separately from the D1 and D2 specs, and
have those specs link to this list.  That way, once the D1 spec is finished,
this list can still be kept up to date with new OSs that may emerge, ready for
anyone wanting to write a D compiler therefor.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 18 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2994


Brad Roberts <braddr puremagic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |braddr puremagic.com




--- Comment #6 from Brad Roberts <braddr puremagic.com>  2009-06-07 16:04:36
PDT ---
I'd rather see the spec fully contained within the spec, not having references
to external sites.  As further justification to my view, in addition to version
identifiers, the ABI part of the spec likely needs updates for new platforms
too.  Just because they're not implemented by DMD doesn't mean the spec
shouldn't contain those platforms.

So, for those that maintain compilers that support other platforms, can you
attach a diff for at least the version identifiers and file another bug report
to update the abi portion of the spec as well? :)

Thanks,
Brad

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 07 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2994





--- Comment #7 from Stewart Gordon <smjg iname.com>  2009-06-07 16:40:30 PDT ---
(In reply to comment #6)
 I'd rather see the spec fully contained within the spec, not having references
 to external sites. 

Well, obviously it wouldn't be an external site. It would be a list somewhere on the D website but separate from the core language spec. Or maybe a page that is in the spec but with an exemption made from freezing to allow for additions of new platforms.
 As further justification to my view, in addition to version
 identifiers, the ABI part of the spec likely needs updates for new platforms
 too.  Just because they're not implemented by DMD doesn't mean the spec
 shouldn't contain those platforms.

Yes, that's exactly why I proposed this. The ABI page should be dealt with in the same way as the predefined version page. I suppose it's a matter of creating a "Platform specifics" section of the specs. This would cover not only the predefined versions and ABI, but also such things as the inline assembler and possibly the current pages on Win32 specifics. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 07 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2994





--- Comment #8 from Brad Roberts <braddr puremagic.com>  2009-06-07 18:03:52
PDT ---
 (In reply to comment #6)
 Or maybe a page that is in the spec but with an exemption made from freezing
 to allow for additions of new platforms.

Ah, well, the freeze of the D1 spec has been pragmatic enough to support updates like this anyway, so no need to worry terribly much about that. I'll reach out on the digitalmars.D newsgroup to attempt to gather up the current list to fold in so this bug can be closed out. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 07 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2994





--- Comment #9 from Sobirari Muhomori <maxmo pochta.ru>  2009-06-10 03:14:28
PDT ---
(In reply to comment #0)
 does not mention how FreeBSD is handled, and does not point out
 any distinction between "linux" and "Posix".

Platform identifiers are provided for user code so that it can work platform-dependent and it's up to user code to handle it in any way needed. For example it's used in core.stdc.stdio to version out various declaration. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 10 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2994


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED


--- Comment #10 from Walter Bright <bugzilla digitalmars.com> 2010-11-09
18:50:43 PST ---
Updated from compiler source cond.c.

http://www.dsource.org/projects/phobos/changeset/2147

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 09 2010