Movatterモバイル変換


[0]ホーム

URL:


D Logo
Menu
Search

Library Reference

version 2.112.0

overview

Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.Requires a signed-in GitHub account. This works well for small changes.If you'd like to make larger changes you may want to consider usinga local clone.

dmd.impcnvtab

Provides an implicit conversion table for basic types.
Used to determine integer promotions and common types.

SpecificationInteger Promotions,Usual Arithmetic Conversions.

Authors:
Walter Bright
License:
Boost License 1.0

Sourceimpcnvtab.d

Documentationhttps://dlang.org/phobos/dmd_impcnvtab.html

Coveragehttps://codecov.io/gh/dlang/dmd/src/master/compiler/src/dmd/impcnvtab.d

pure nothrow @nogc @safe TYimplicitConvCommonTy(TYty1, TYty2);
If ty1 and ty2 are basic types, return the TY that both can be implicitly converted to.
Parameters:
TYty1first operand type
TYty2second operand type
Returns:
ty = common type, else Terror
pure nothrow @nogc @safe TYimplicitConvTy1(TYty1, TYty2);
If ty1 and ty2 are basic types, return the TY that ty1 can be implicitly converted to to bring them to a common ty. It's symmetric, i.e. the operands can be swapped.
Parameters:
TYty1first operand type
TYty2second operand type
Returns:
ty = what ty1 should be converted to, else Terror
Copyright © 1999-2026 by theD Language Foundation | Page generated byDdoc on Sat Feb 21 00:04:59 2026

[8]ページ先頭

©2009-2026 Movatter.jp