This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tok_split_gte=false | |
| utf8_byte=false | |
| utf8_force=false | |
| indent_cmt_with_tabs=true | |
| indent_align_string=true | |
| indent_braces=false | |
| indent_braces_no_func=false | |
| indent_braces_no_class=false | |
| indent_braces_no_struct=false | |
| indent_brace_parent=false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tok_split_gte=false | |
| utf8_byte=false | |
| utf8_force=false | |
| indent_cmt_with_tabs=true | |
| indent_align_string=true | |
| indent_braces=false | |
| indent_braces_no_func=false | |
| indent_braces_no_class=false | |
| indent_braces_no_struct=false | |
| indent_brace_parent=false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| string evalString(Expression e) in { | |
| // FIXME: newtype | |
| // assert(cast(SliceType) peelAlias(e.type).type, "this only CTFE strings."); | |
| } body { | |
| // Create a global variable that recieve the string. | |
| auto stringType = codeGen.visit(e.type); | |
| auto receiver = LLVMAddGlobal(codeGen.dmodule, stringType, "__ctString"); | |
| scope(exit) LLVMDeleteGlobal(receiver); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
| "http://www.w3.org/TR/html4/loose.dtd"> | |
| <html lang='en-US'> | |
| <!-- | |
| Copyright (c) 1999-2010 by Digital Mars | |
| All Rights Reserved Written by Walter Bright | |
| http://www.digitalmars.com | |
| --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module concepts; | |
| private import std.typetuple; | |
| private import std.traits; | |
| //Gets the member type, even for properties. | |
| private template getMemberType(C, string memberName) | |
| { | |
| alias member = TypeTuple!(__traits(getMember, C, memberName))[0]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module concepts; | |
| private import std.typetuple; | |
| private import std.typecons; | |
| private import std.traits; | |
| private import std.stdio; | |
| private template getMemberType(C, string memberName) | |
| { | |
| alias member = TypeTuple!(__traits(getMember, C, memberName))[0]; |