查询
1 词典释义:
mixin
时间: 2025-04-27 01:17:01

米欣

双语例句
  • A mixin can implement multiple interfaces.

    一个mixin可以实现多个接口。

  • The callback logic is a good example of a mixin.

    这个回调逻辑就是mixin的一个不错例子。

  • It turns out that there is — it's known as a mixin.

    答案是有的—它就是mixin。

  • Scala provides a complete mixin solution, called traits.

    Scala提供了完整的混合(mixin)解决方案,称为Traits。

  • An interface is also constructed for the parent of the mixin.

    还为mixin的父类构造了一个接口。

  • The first use of the word mixin originated with the Lisp community.

    词语mixin的初次使用源自Lisp社区。

  • The Resource Template Mixin builds upon the concept of OS Templates.

    资源模板Mixin建立在操作系统模板之上。

  • Additionally, Jam imposes five constraints on the instantiation of a mixin.

    另外,Jam对mixin的实例化强加了五个约束。

  • A "mixin class" is an interesting concept, and is often a good design choice.

    “mixin类”是个有趣的概念,也常常是个很好的设计选择。

  • Constructors cannot be declared in a mixin, but only for mixin instantiations.

    在mixin中不能声明构造器,它只适用于mixin实例化。

  • However, unlike an abstract class, a mixin does not try to contain the framework for a child.

    然而,与抽象类不同的是,mixin并不试图包括子类的框架。

  • The name mixin was used because such classes can be mixed together with other classes in various ways.

    之所以使用 mixin这个名称,是因为这样的类可以以各种方式与其它类混合在一起。

  • This parent interface is extended by the mixin interface (but not by the instantiations of the parent class).

    这个父类接口是由mixin接口继承而来的(而不是由父类的实例化继承而来的)。

  • Without it, there is no way to ensure that a Jam mixin type will be valid across all possible instantiations.

    没有它,就无法确保Jam mixin类型将在所有可能的实例化上都是有效的。

  • In Figure 2, we've turned class Scrollable into a mixin that can extend different classes in different contexts.

    在图2中,我们已经将类Scrollable转换成mixin,它可以继承不同上下文中的不同类。

  • In this solution, a mixin is associated with a view that determines which method to call in the case of a name clash.

    在这个解决方案中,mixin包含有这样的观点:确定在名称不一致的情况中要调用哪个方法。

  • A potential show-stopper, passing "this" as an argument to a method or a constructor from inside a mixin is forbidden!

    可能的显示阻塞(show - stopper)将“this”作为参数从mixin内部传递给方法或构造器,这是被禁止的!

  • If no constructors are specified in a mixin instantiation, the default zero-argument (zeroary) constructor is assumed.

    如果在mixin实例化中没有指定任何构造器,那么就假定是缺省的不带参数的(zeroary)构造器。

  • Also notice that the type checker can't even check that every instantiation of a mixin will result in valid super-constructor calls.

    而且请注意,类型检查器甚至不能检查是否每个mixin实例化都会产生有效的超级构造函数调用。

  • Mixins in Jam, like ordinary classes, define types; mixin instantiations have both the type of the mixin and the type of the parent.

    Jam中的mixin与普通类相似,都定义类型;mixin实例化拥有mixin的类型和父类的类型。

  • Objective: To Study the effect of fixing-fluoride of bone salt emulsion extracted from sheep bone for raw material of Mixin black tea.

    目的:研究羊骨提取的骨盐乳剂对米心红茶原料的固定理氟作用。

  • Class abstractions are extended by subclassing and a flexible mixin-based composition mechanism as a clean replacement for multiple inheritance.

    Class的抽象可由子类化和一种灵活的基于mixin的组合机制(它可作为多重继承的简单替代方案)来扩展。

  • This was sometimes called a "mixin" in C++, though not to be confused with Ruby mixins (or the Scala mixin, which I'll discuss in a later article.)

    这有时在 C++ 中称为 “混合”,与 Ruby 的混合(或后文中探讨的 Scala 混合)有所不同。

  • Although the concept of mixins has been applied to many languages, Jam is novel in that it introduces mixin-based programming rigorously in the context of a strongly typed language.

    尽管mixin的概念已经应用到了许多语言中,但是Jam还是很新颖,因为它在严格类型化的语言上下文中严格引入了基于mixin的编程。

  • Jam mixins can be instantiated only on classes; unlike components in Jiazzi, there is no notion of mixin composition (however, the Jam team would like to explore such an extension).

    只能根据类来实例化Jam mixin;与Jiazzi中的组件不同的是,Jam中没有mixin组合的概念(但是,Jam团队有意探究这样的扩展)。

  • Ambiguous overloading is a problem because method arguments may be of mixin type, allowing for situations in which two overloaded methods are applicable and neither is more specific.

    不明确的重载是个问题,因为方法参数可能是mixin类型,它允许两个已重载的方法可用并且这两个方法都不是比较特定的情况。